-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce more intuitive method names in Data classes and reduce requ…
…ired input parameter for TrajectoryData.set_trajectory() method (#2310) * Rename ArrayData.iterarrays() to ArrayData.get_iterarrays() * [TrajectoryData] Rename _get_aiida_structure() -> get_structure() * [TrajectoryData] Rename _get_cif() -> get_cif() * Rename _get_cif() -> get_cit() in tcod.py * [StructureData] Rename _get_cif() -> get_cif() * Make stepid and cells parameter optional Change TrajectoryData to make passing stepids and cells optional. While nothing will be stored for cells if not given a consecutive sequence will be automatically assigned to stepids if missing from the inputs. * Store symbols in TrajectoryData attribute instead of array As proposed in issue #201 symbols are now stored in a TrajectoryData attribute rather than an array to simplify the query for these symbols * Change passed symbols from numpy.ndarray to list in set_structurelist * Change TrajectoryData tests to use symbols attribute rather than symbols array * Make Code.is_hidden() available as class property * Rename Code.full_text_info() method to .get_full_text_info() * Change RemoteData.is_empty() method to class property .is_empty * Change is_alloy() and has_vacancies() methods to properties Make class methods .is_alloy() and .has_vacancies() for StrutureData and Kind classes accessible as class properties .is_alloy and .has_vacancies * Change symbols type from numpy.array to list * Add deprecation warning to renamed methods * Rename code attribute is_hidden to hidden. * Set allowed symbols type to be Iterable rather than list * Ensure symbols are stored as list * Adjust argument ordering in set_trajectory() docstring. * Document introduced changes in concepts/workflows
- Loading branch information
1 parent
19110f9
commit 8398f24
Showing
16 changed files
with
286 additions
and
139 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
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
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
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