Comments (14)
this line and the one below
from jwst.
At build-time the version data is recorded at the top-level of the jwst
package:
from jwst.version import *
from .version import *
from ..version import *
#(or whatever level of relative '.'s)
__version_commit__
replaces __svn_revision__
version.py snippet:
__version__ = '0.6.0noop.dev107'
__version_short__ = '0.6.0noop'
__version_long__ = '0.6.0noop-107-gf845387d'
__version_post__ = '107'
__version_commit__ = 'f845387d'
__version_date__ = '2016-06-13 17:35:10 -0400'
__version_dirty__ = False
__build_date__ = '2016-06-13'
__build_time__ = '17:37:19.913442'
__build_status__ = 'release' if not int(__version_post__) > 0 \
and not __version_dirty__ \
else 'development'
On 6/13/16 5:48 PM, Nadia Dencheva wrote:
|stpipe.Step.run| records the version of the software used as
|svn_revision|.
@jhunkeler https://github.com/jhunkeler What is the way to get the
equivalent number now?I'm commenting out this line in stpipe for now to try to get a clean
run of all tests.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#57, or mute the thread
https://github.com/notifications/unsubscribe/AAd95aqCsznKRLMWbrXJ4kRcEw6hmQjhks5qLdAmgaJpZM4I0xP6.
from jwst.
^ replying by email breaks markdown. Good to know.
At build-time the version data is recorded at the top-level of the jwst
package:
from jwst.version import *
from .version import *
from ..version import *
#(or whatever level of relative '.'s)
__version_commit__
replaces __svn_revision__
version.py snippet:
__version__ = '0.6.0noop.dev107'
__version_short__ = '0.6.0noop'
__version_long__ = '0.6.0noop-107-gf845387d'
__version_post__ = '107'
__version_commit__ = 'f845387d'
__version_date__ = '2016-06-13 17:35:10 -0400'
__version_dirty__ = False
__build_date__ = '2016-06-13'
__build_time__ = '17:37:19.913442'
__build_status__ = 'release' if not int(__version_post__) > 0 \
and not __version_dirty__ \
else 'development'
from jwst.
Thanks. It shoul dbe resolved by #58
from jwst.
version_commit certainly seems to be the closest thing to the equivalent of the SVN revision number, so that seems appropriate to use in place of svn_revision. Just curious, what does the date/time value in version_date refer to? Is it the time at which the commit was done?
from jwst.
@hbushouse Yes, __version_date__
refers to the timestamp of the commit. For example, if you were to check out the parent tag using git checkout 0.6.0noop
and run the setup script, the generated version.py
will read:
__version__ = '0.6.0noop'
__version_short__ = '0.6.0noop'
__version_long__ = '0.6.0noop-0-g5915b0e9'
__version_post__ = '0'
__version_commit__ = '5915b0e9'
__version_date__ = '2016-06-08 14:23:41 -0400'
__version_dirty__ = False
__build_date__ = '2016-06-13'
__build_time__ = '22:58:53.064910'
__build_status__ = 'release' if not int(__version_post__) > 0 \
and not __version_dirty__ \
else 'development'
from jwst.
What are we going to do about the CAL_SVN keyword? Pretend the "SVN" doesn't mean anything? Delete it? Rename it?
from jwst.
I'm thinking of renaming the keyword to something like "CAL_GIT" (CAL_HASH, CALCOMMT?) and populate it with the value of __version_commit__
.
from jwst.
On 06/14/2016 08:35 AM, Howard Bushouse wrote:
I'm thinking of renaming the keyword to something like "CAL_GIT"
(CAL_HASH, CALCOMMT?) and populate it with the value of
|version_commit|
How about CAL_VCS? If we wrote a keyword VERSION_COMMIT to the FITS
header, maybe nobody would notice.
Phil
from jwst.
I agree that something like VERSION_COMMIT (which we can't use anyway, because it's too many characters) or GITCOMMIT etc. is too generic, because there are also keywords that give the version numbers of things like CRDS and SDP. So we do need to classify it under the "CAL" hierarchy somehow. What would "VCS" in "CAL_VCS" stand for?
from jwst.
On 06/14/2016 08:51 AM, Howard Bushouse wrote:
I agree that something like VERSION_COMMIT (which we can't use anyway,
because it's too many characters) or GITCOMMIT etc. is too generic,
because there are also keywords that give the version numbers of
things like CRDS and SDP. So we do need to classify it under the "CAL"
hierarchy somehow. What would "VCS" in "CAL_VCS" stand for?
Version control system. I didn't think it was a good idea to tie a
keyword to a particular VCS. If we'll have lots of different version
keywords, we could use the comment section to explains what it refers to.
from jwst.
I am not sure what we talked about here was resolved except the original question.
I think it would be good to have a description comment in the file for each of the variables.
Other than that I have no further comments. @hbushouse feel free to close if you think this has been resolved.
from jwst.
I think that using version_commit to populate the keyword value is OK, but we should still change the name of the keyword (CAL_SVN) to something like CAL_VCS and update the keyword comment. So let's keep this open for B7.1.
from jwst.
Fixed by #1388
from jwst.
Related Issues (20)
- Set cal step status for slits in MultiSlit models HOT 2
- Review jwst code for step.skip usage HOT 2
- Add algorithm parameter to ramp_fit spec HOT 7
- Clean up pipeline config files
- Fix problematic resample step unit test HOT 1
- Outlier blotting does not account for img.meta.photometry.pixelarea_steradians HOT 4
- niriss image3 crashes with "MalformedPolygonError: intersection: find all intersections" HOT 6
- IFU 1d spectral extraction doesn't account for noise in annular background subtraction HOT 3
- Asymmetrical Snowballs not getting flagged HOT 3
- Implementation of 1/f correction
- MIRI MRS background associations should only be created from background candidates
- Fix error propagation in combine_1d HOT 3
- Error in ApCorr propagation to variances HOT 2
- Background error propagation in non-IFU background subtraction HOT 2
- Add group_id to Level 3 associations HOT 2
- Investigate refpix differences across systems
- Investigate coron3 differences across systems
- Nod Flux oversubtraction correction for NIRSpec Fixed-Slit and MOS point-source spectra
- Move NIRSpec FS point source position assignment out of wavecorr HOT 2
- Spec3 step mrs_imatch crashing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwst.