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.

Enhancement request: Document how to get the lightkurve version in a Python script.

See original GitHub issue

Enhancement request description

Amend documentation to show how to get the lightkurve software version in a Python script.

Example

from lightkurve import version as lkver
print("lightkurve version =", lkver.__version__)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
barentsencommented, Jan 21, 2019

Having Google’d this a bit just now, it looks like packagename.__version__ is the de facto standard way in which Python packages encode their version numbers, and it is recorded as such in PEP8 (and PEP 396, though it is not an active PEP).

For the sake of avoiding having multiple ways to do the same thing, I suggest we advertise and document the use of lightkurve.__version__ as the way to get the version information.

0reactions
barentsencommented, Nov 20, 2019

Our current installation instructions in the online docs demonstrate how to use lightkurve.__version__ to verify what version of Lightkurve has been installed, so I believe this issue has been resolved! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Document how to get the lightkurve version in a Python script ...
Enhancement request description Amend documentation to show how to get the lightkurve software version in a Python script. Example from lightkurve import ...
Read more >
Reporting issues and proposing changes - Lightkurve
If you would like to propose a change or bug fix to Lightkurve, please go ahead and open a pull request using the...
Read more >
lightkurve.lightcurve — AltaiPony 2.0.0 documentation
Source code for lightkurve.lightcurve. """Defines LightCurve, KeplerLightCurve, and TessLightCurve.""" import os import ...
Read more >
PHOEBE | Eclipsing Binary Modeling Software
PHOEBE is an astronomical python software package which robustly generates synthetic models of the light curves, radial velocity curves, and spectral line ...
Read more >
The VARTOOLS Light Curve Analysis Program
The development version of VARTOOLS can also be obtained from the ... Note that the -python command and -R commands have only been...
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