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.

`seismology` __repr__ doesnt put the mission identifier before the ID

See original GitHub issue

When calling the repr of the seismology module, the ID appears as:

Seismology(ID: 441462736)

as opposed to the repr for a periodogram or lightcurve object, that would appear as

TessLightCurve(TICID: 441462736)

Specifying the mission ID in Seismology would help alleviate some confusion, but it is a minor issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gullycommented, Aug 19, 2019

A bonus here is that users can override the label, so you can do clarify experiments with:

lc_unlabeled.label = 'V827 Tau with 6 pixel aperture'
lc_unlabeled.normalize().to_periodogram().flatten().to_seismology()

and get: Seismology(Source: V827 Tau with 6 pixel aperture) - no values have been computed so far.

1reaction
barentsencommented, Aug 19, 2019

I like this! We should consistently use the label attribute to label data products, even if custom objects may not have it set.

Minor caveat: LombScarglePeriodogram(Source: None) suggests that the periodogram contains “no source”, so you may want to re-word that slightly, e.g. ID: None may be less confusing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Citizen Seismology Without Seismologists? Lessons Learned ...
First, a sociological analysis of this independent citizen science network enables an identification of the reasons for its creation and the ...
Read more >
Dealing with earthquakes: the practice of seismic engineering ...
This paper sets out to explore the different ways in which communities deal with earthquakes. As is well known, the ability to recover...
Read more >
What is liquefaction? | U.S. Geological Survey - USGS.gov
Liquefaction takes place when loosely packed, water-logged sediments at or near the ground surface lose their strength in response to strong ground shaking....
Read more >
InSight - eoPortal
InSight's seismometer will be placed directly on the Martian surface, which will provide much cleaner data. • January 23, 2018: NASA's next ...
Read more >
California Missions Undergo Upgrades To Resist Quakes - NPR
Conversion these days at the state's Spanish missions isn't only about religion; it's also about seismic retrofitting.
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