question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Append does not track metadata-- returns copy of metadata of just one lightcurve

See original GitHub issue

Append does not track metadata-- returns copy of metadata of just one lightcurve

lcf = KeplerLightCurveFile.from_archive(6922244, quarter=4)
lcf2 = KeplerLightCurveFile.from_archive(6922244, quarter=5)

lc = lcf.SAP_FLUX
lc2 = lcf2.SAP_FLUX

lc.channel, lc2.channel
(31, 3)

new_lc = lc_a.append(lc_b)
new_lc.channel
31
'''

Is this behavior desired?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
barentsencommented, Nov 19, 2018

I suggest the following way forward for this issue:

  • Combining lightcurves should always return a generic LightCurve object that does not contain metadata that is specific to e.g. an individual KeplerLightCurve (e.g. channel is not an attribute of LightCurve).
  • The combination of lightcurves should be implemented in a robust LichtCurveCollection.stitch() method. The LightCurve.append() method should either be removed, or be a light wrapper around LichtCurveCollection.stitch().

@nksaunders Do you want to look into this as part of #309?

1reaction
barentsencommented, Jul 30, 2018

Just before merging I made a small change to make sure LightCurveCollection could hold multiple lightcurves with the same targetid. I was worried users will be confused if a collection can’t hold any arbitrary combination of LightCurve objects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to extract the Gaia ancillary data using datalink
Information and example on how to extract the Gaia multi-dimensional data / ancillary data using datalink.
Read more >
Lightkurve/lightcurve.py at master - GitHub
Light curves to be appended to the current one. Returns. -------. new_lc : LightCurve object. Concatenated light curve. """ if not hasattr(others, ...
Read more >
Unsupported Metadata Types | Metadata API Developer Guide
The following components can't be retrieved or deployed with Metadata API, and changes to them must be made manually in each of your...
Read more >
Metadata API Developer Guide
Salesforce does not guarantee that an application written against one API version will work with future API versions: Changes in method.
Read more >
Zwicky Transient Facility - IRSA IPAC - Caltech
For each of the above surveys, there is one g-!lter and one r-!lter exposure of ... CCD-quadrant-based calibration image data and metadata in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found