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

DM-46970: Handle None values in table mode #79

Merged
merged 7 commits into from
Dec 5, 2024
Merged

DM-46970: Handle None values in table mode #79

merged 7 commits into from
Dec 5, 2024

Conversation

timj
Copy link
Member

@timj timj commented Dec 4, 2024

If a translation fails we still need to be able to display the table contents.

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 88.33333% with 7 lines in your changes missing coverage. Please review.

Project coverage is 87.97%. Comparing base (c715040) to head (cdace0b).
Report is 8 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
python/astro_metadata_translator/bin/translate.py 84.78% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   87.99%   87.97%   -0.02%     
==========================================
  Files          37       37              
  Lines        3106     3144      +38     
  Branches      413      414       +1     
==========================================
+ Hits         2733     2766      +33     
- Misses        258      260       +2     
- Partials      115      118       +3     

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

@timj timj force-pushed the tickets/DM-46970 branch from 7c4c72a to 9b77edd Compare December 4, 2024 22:16
Copy link

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, one minor question.

python/astro_metadata_translator/bin/translate.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-46970 branch from c028661 to e9b5886 Compare December 4, 2024 23:36
Copy link

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, a couple of questions. One test is failing probably because table header is centered?

python/astro_metadata_translator/bin/translate.py Outdated Show resolved Hide resolved
python/astro_metadata_translator/bin/translate.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-46970 branch from b0fd641 to 1616c8f Compare December 5, 2024 15:53
timj added 3 commits December 5, 2024 10:50
This requires that column data be accumulated during file reads
rather than being output as each file is encountered.
Now that the output table accumulates rather than having the
row printed instantly, batch up table output and dump it
every few hundred entries. Without this it's possible people
could be waiting a long time with no output appearing and
eating up lots of memory.
@timj timj force-pushed the tickets/DM-46970 branch from 1616c8f to cdace0b Compare December 5, 2024 18:01
@timj timj merged commit 545b08b into main Dec 5, 2024
18 checks passed
@timj timj deleted the tickets/DM-46970 branch December 5, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants