Skip to content
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

TEST: Table dynamic units #243

Closed
wants to merge 5 commits into from

Conversation

braingram
Copy link
Collaborator

@braingram braingram commented Dec 7, 2023

Test/example PR to explore/demonstrate dynamic units (with a path towards no FITS_rec usage in jwst) in the context of issue: #240

Based off changes in #242

@braingram braingram added the no-changelog-entry-needed Trivial change that doesn't need an entry in the change log label Dec 7, 2023
Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bbc9016) 64.78% compared to head (4dab3cb) 64.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
+ Coverage   64.78%   64.82%   +0.04%     
==========================================
  Files         103      103              
  Lines        5688     5695       +7     
==========================================
+ Hits         3685     3692       +7     
  Misses       2003     2003              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

type: string
fits_keyword: TUNIT9
fits_hdu: EXTRACT1D
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an entry here for SB_VAR_RNOISE (and the increment of later TUNITS to fit). Will the default value (i.e. for the DQ column, which is unitless) be empty?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding the mistake!

The default unit for all of these is None. If there are columns where units don't make sense (like DQ) we should consider either:

  • setting the unit as None in the schema (if this works)
  • leaving DQ out of the spec_table_units attribute

@braingram
Copy link
Collaborator Author

I'm closing this PR as it's out of date and hopefully served it purpose of demonstrating a way to have dynamic units in JWST.

@braingram braingram closed this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-entry-needed Trivial change that doesn't need an entry in the change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants