-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update models according to changes during CECAM 2020 meeting (#350)
* Added nperiodic_dimensions to all test inputs * Added nperiodic_dimensions field to structure model * Added bad structure data for mismatched nperiodic_dimensions/dimension_types * Updated adapter tests with new field * Add attached and nattached + site_attachments site_attachments is a flag under structure_features. attached and nattached are fields for a species. * Add implicit_atoms to structure_features Currently it tests whether a species is represented in species_at_sites, however, implicit_atoms MUST also be set for some assemblies, this validation should be added. * unknown_positions is no longer It used to be a flag in structure_features, but has been replaced by implicit_atoms and site_attachments. * Add tests, remove handling of unknown positions Several conversion functions for the StructureAdapter specifically handled None values in cartesian_site_positions, which is no longer an option, hence, these extra steps have been removed from the affected conversion functions. * Add aggregate and no_aggregate_reason These are optional properties for a LinksResource. * Add type to entry listing info properties * Add type field to all properties * Use Enums for list of literal values * Use enumerations for other literal values * Add tests for DataType methods * Add more "bad" structures for testing validators * Add new EOL for update OpenAPI tasks * Use test_more_structures.json Using again test_more_structures.json revealed some errors with the new validators, as well as some updates that needed to be done to existing validators. In order to properly validate `species_at_sites` it has to be instantiated _after_ `species`. * Use Aggregate Enum for correct property ... * Restructure tests/models Move to pytest. Add fixtures for loading test data. * Add LinksResource tests Co-authored-by: Casper Welzel Andersen <casper.andersen@epfl.ch>
- Loading branch information
Showing
43 changed files
with
1,479 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.