-
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
Add valid_time to TIME_NAMES and fix issue with pretty printing #206
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #206 +/- ##
==========================================
- Coverage 98.25% 98.10% -0.16%
==========================================
Files 12 12
Lines 1263 1266 +3
==========================================
+ Hits 1241 1242 +1
- Misses 22 24 +2 ☔ View full report in Codecov by Sentry. |
I don't think there should be a case where |
I realized that I poorly wrote that sentence. I mean that |
b8d7cae
to
656232c
Compare
Are we encountering these cases in the wild? Which other |
I don't think this ever appear in the wild, but we don't restrict what |
Yes, I'd say that would be the safest thing to do. |
If a `Outputvar` is empty, then there was an issue with computing the amount of padding to add. This can be fixed by adding `init = 0` when taking the maximum, so the amount of padding is 0 if there is nothing to pad. Additionally, if there are 0 elements in a dimension, it print "0 element" instead of just "0". Finally, when printing the dimensions that the data is defined over, we do not add a new line on the final line.
closes #204, closes #205 - The issue with pretty printing is when the
OutputVar
has empty dictionaries in which the padding cannot be computed. The other potential issue is when the value ofdim_attributes
is something that is not a dictionary.