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

Ugrid2 dev #12

Merged
merged 8 commits into from
Jan 9, 2019
Merged

Ugrid2 dev #12

merged 8 commits into from
Jan 9, 2019

Conversation

daltonkell
Copy link
Contributor

Updated UgridChecker

After creating a dependency graph for the feature checks, the checker has
been re-written to run more efficiently and with more logical, readable
steps. 1-D and 2-D meshes are checked for their features, while development
for fully unstructured, 3D meshes is needed. The checks also come complete
with tests. Other changes are as follows:
  - renamed UgridChecker10 to UgridChecker
  - renamed test file
  - updated checks.md
  - updated ugrid.cdl test file
  - edited setup.py accordingly

Rearranged the checks.md for clarity. Re-wrote first four core checks to make logic easier to follow, more elegant. Next step is writing the tests for these re-written checks and then finishing more complex checks and their tests.
…iance-checker command line tool.

Previous commit had the initialization of the UgridChecker10 object requiring a dataset, which broke the compliance checker. Now it leverages the BaseNCCheck.setup() method to assign the dataset object and create the dictionary of meshes.
Also had to add _cc_display_headers. Edited the checks.md for better organization and added an omitted check for volume_shape_type.
The ugrid.cdl includes a second mesh variable of dimension 2; 3D checks have yet to be implemented and tested.
Checks.md now use the latest names of the checks; features consolidated information and updated format.
After creating a dependency graph for the feature checks, the checker has
been re-written to run more efficiently and with more logical, readable
steps. 1-D and 2-D meshes are checked for their features, while development
for fully unstructured, 3D meshes is needed. The checks also come complete
with tests. Other changes are as follows:
  - renamed UgridChecker10 to UgridChecker
  - renamed test file
  - updated checks.md
  - updated ugrid.cdl test file
  - edited setup.py accordingly
@daltonkell daltonkell self-assigned this Nov 29, 2018
A conflict during the TravisCI build with an earlier PR prompted changing
of the netCDF4 requirement in the requirements file from v.1.4.2 to a more
relaxed >=v.1.4.0. Versions prior to 1.4.2 do not have a Variable.get_dims()
method, so in order to keep the code functioning we now get the dimensions
in a slightly more verbose way.
@daltonkell
Copy link
Contributor Author

This also addresses #6 (closing that issue).

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.

1 participant