Skip to content

Offsets computed in magnitude but not flux? #14

@chto

Description

@chto

Hi @mtewes !

I am learning pycs with @drphilmarshall, while working through the SLTimer notebooks that Milan wrote this summer. It looks as though the offsets found by optimizing a spline model are only in magnitude, and not also in flux - is this a bug or a feature?

Thanks!

Chun-Hao

def spl(lcs):
    spline = pycs.spl.topopt.opt_rough(lcs, nit=5, knotstep=50)
    for l in lcs:
        l.resetml()
    spline = pycs.spl.topopt.opt_rough(lcs, nit=5, knotstep=30)
    spline = pycs.spl.topopt.opt_fine(lcs, nit=10, knotstep=20)
    return spline

spline = spl(lcs)

print(lcs[1].longinfo())

Trial/B
192 points (total), 0 of which are masked
4 seasons (gap: >60), gap length : 164.0 +/- 33.8 days
Sampling : median 4.0, mean 4.4, max 25.1, min 0.83 days
Shifts : (27.97498,-0.64693,0.00) [days, mag, flux]
Colour : blue
Common properties :
All properties :
Comments :
Imported from trialcurves.txt, columns (1, 4, 5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions