Skip to content

Should the background be exported in FitResult? #509

Description

@HKaras

Currently, it is quite complicated to calculate the background fit for plotting. Especially when using multiple-pathways often requiring commands such as:

Bfcn = lambda lam1,lam5,reftime1,reftime5,conc: results.P_scale*(1-lam1-lam5)*dl.bg_hom3d(t-reftime1,conc,lam1)*dl.bg_hom3d(t-reftime5,conc,lam5)
Bfit = results.evaluate(Bfcn)
Bci = results.propagate(Bfcn).ci(95)

Proposal

That the following outputs be added to FitResult:

  • FitResult.bg
  • FitResult.bgUncert

This is quite a dipolar specific application, and it should be possible to implement in such a way that for non-dipolar models and cases where there is no background that this isn't released.

Activity

  1. added this to the v1.2 milestone on Apr 13, 2026
  2. added theissue type on Apr 13, 2026
  3. HKaras commented on Apr 13, 2026

    @HKaras
    MemberAuthor

    This would also close the issue of #472 as it would be no longer relevant

  4. stestoll commented on Apr 14, 2026

    @stestoll
    Collaborator

    This seems practical and reasonable.

  5. linked a pull request that will close this issueDipolarbackgroundmodel func #493on May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions