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

Update for CF/IOOS Conventions #118

Merged
merged 10 commits into from
Nov 7, 2023
Merged

Conversation

jmcvey3
Copy link
Collaborator

@jmcvey3 jmcvey3 commented May 24, 2023

Fixes to dolfyn metadata to conform to CF/IOOS variable metadata conventions.

  • Fix standard names
  • Check datatypes
  • Check coordinate names/metadata

@coveralls
Copy link

coveralls commented May 24, 2023

Pull Request Test Coverage Report for Build 5545879432

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 53 of 75 (70.67%) changed or added relevant lines in 8 files are covered.
  • 4 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.1%) to 89.289%

Changes Missing Coverage Covered Lines Changed/Added Lines %
dolfyn/io/nortek2_lib.py 9 10 90.0%
dolfyn/io/base.py 10 13 76.92%
dolfyn/tests/test_read_io.py 4 8 50.0%
dolfyn/io/nortek2.py 16 30 53.33%
Files with Coverage Reduction New Missed Lines %
dolfyn/io/api.py 1 93.24%
dolfyn/tests/test_read_io.py 1 79.27%
dolfyn/io/nortek.py 2 90.52%
Totals Coverage Status
Change from base Build 4757548436: -0.1%
Covered Lines: 5385
Relevant Lines: 6031

💛 - Coveralls

@jmcvey3 jmcvey3 requested a review from lkilcher August 3, 2023 18:32
@@ -44,7 +44,7 @@ def read_nortek(filename, userdata=True, debug=False, do_checksum=False,
for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
filepath = Path(filename)
logfile = filepath.with_suffix('.log')
logfile = filepath.with_suffix('.dolfyn.log')
Copy link
Owner

Choose a reason for hiding this comment

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

A log file! Brilliant!

Copy link
Owner

Choose a reason for hiding this comment

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

Did you check that the only thing that changed is the names?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I verified the tests were just failing on those specific variables' attributes

@jmcvey3
Copy link
Collaborator Author

jmcvey3 commented Oct 20, 2023

@lkilcher Realized you never hit the check so this can merge.

Copy link
Owner

@lkilcher lkilcher 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! Thanks James!

@lkilcher lkilcher merged commit a508dc1 into lkilcher:master Nov 7, 2023
7 checks passed
@jmcvey3 jmcvey3 deleted the ioos_standards branch November 27, 2023 16:15
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.

None yet

3 participants