-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flexible way to fill DATAMAX/MIN BUNIT EXPOSURE in FITS header keywords #393
Merged
Merged
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d9c5387
bump all product versions to 2
nicHoch f0642f9
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 5d22466
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 2ae68fb
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 31cbb6d
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch af81758
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 47631c7
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 9f0dfb1
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch c020af4
Merge branch 'master' of https://github.com/i4Ds/STIXCore
nicHoch 5d6b6bd
add properties for dedicated fits header keywords with class inhe. / …
nicHoch 11f80d7
add test and minor fixes after review
nicHoch 8f14db8
fix XPOSURE/XPOMAX header error
nicHoch 4392bee
fix tests for dmax...
nicHoch e243e99
relax end2end fitsdiff
nicHoch a4651d9
less tolerance in end2end test
nicHoch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,21 @@ def __init__(self, *, service_type, service_subtype, ssid, control, | |
self.name = 'xray-vis' | ||
self.level = 'L1' | ||
|
||
@property | ||
def dmin(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea this might be tricky as they are complex numbers |
||
# TODO define columns for dmin/max | ||
return 0.0 | ||
|
||
@property | ||
def dmax(self): | ||
# TODO define columns for dmin/max | ||
return 0.0 | ||
|
||
@property | ||
def bunit(self): | ||
# TODO define columns for dmin/max | ||
return ' ' | ||
|
||
@classmethod | ||
def is_datasource_for(cls, *, service_type, service_subtype, ssid, **kwargs): | ||
return (kwargs['level'] == 'L1' and service_type == 21 | ||
|
@@ -113,6 +128,24 @@ def __init__(self, *, service_type, service_subtype, ssid, control, | |
self.name = 'aspect-burst' | ||
self.level = 'L1' | ||
|
||
@property | ||
def dmin(self): | ||
return min([self.data['cha_diode0'].min(), | ||
self.data['cha_diode1'].min(), | ||
self.data['chb_diode0'].min(), | ||
self.data['chb_diode1'].min()]) | ||
|
||
@property | ||
def dmax(self): | ||
return max([self.data['cha_diode0'].max(), | ||
self.data['cha_diode1'].max(), | ||
self.data['chb_diode0'].max(), | ||
self.data['chb_diode1'].max()]) | ||
|
||
@property | ||
def bunit(self): | ||
return ' ' | ||
|
||
@classmethod | ||
def is_datasource_for(cls, *, service_type, service_subtype, ssid, **kwargs): | ||
return (kwargs['level'] == 'L1' and service_type == 21 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
value
orto_value()
not needed here as below?