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

Fix NaN interpolation to catch edge cases and remove time dimension #35

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

ashjbarnes
Copy link
Collaborator

This fixes a few headaches in the initial condition interpolater. These are important for running with a newer executable where more netcdf variable type checks are done

@ashjbarnes
Copy link
Collaborator Author

Ok I ran black and then pushed again but the test fails and idk why

@navidcy
Copy link
Contributor

navidcy commented Jun 15, 2023

OK! I think you have some WEIRD characters at the end of your file!

@navidcy
Copy link
Contributor

navidcy commented Jun 15, 2023

I think it originated because you had a parsing error with 2 parentheses in your first commit....

@@ -1503,3 +1457,4 @@ def brushcut(self, ryf=False):
)

return segment_out, encoding_dict
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor

Choose a reason for hiding this comment

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

There were some WEIRD characters here. If I opened with VS Code look what I saw:

Screenshot 2023-06-15 at 10 56 46 am

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I saw that and thought I fixed it with the second commit. That's not present in my local copy (black actually ran fine for me) but maybe I forgot to save and commit again. Just re-committed now

@navidcy navidcy changed the title fix nan interpolation to catch edge cases and remove time dimension f… Fix NaN interpolation to catch edge cases and remove time dimension Jun 15, 2023
@navidcy
Copy link
Contributor

navidcy commented Jun 15, 2023

That's good...
But I'd have to trust you that you fixed a bug. This is the type of things that a test should have caught ;)

@navidcy navidcy self-requested a review June 15, 2023 00:58
@navidcy
Copy link
Contributor

navidcy commented Jun 15, 2023

Gotcha!

@navidcy
Copy link
Contributor

navidcy commented Jun 15, 2023

Note: If this was part of dealing with #34 then just feel free to commit there. :)

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #35 (5f5260a) into main (295036d) will increase coverage by 0.15%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main     #35      +/-   ##
========================================
+ Coverage   8.66%   8.81%   +0.15%     
========================================
  Files          2       2              
  Lines        450     431      -19     
========================================
- Hits          39      38       -1     
+ Misses       411     393      -18     
Impacted Files Coverage Δ
mom6_regional/mom6_regional.py 8.21% <0.00%> (+0.12%) ⬆️

@ashjbarnes ashjbarnes merged commit df0fe59 into main Jun 15, 2023
@ashjbarnes ashjbarnes deleted the bugfix_ic branch June 15, 2023 01:04
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