Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
properties
to Structure and Molecule (#3264)
* Add 'properties' to Structure and Molecule * add properties in copy methods * fix structure copy * setting structure properties in more places * test struct with props to/from JSON str * assert '"test_property": 42' in json_str * fix Structure properties when reading from string * make Molecule.from_str case insensitive * Molecule.to() support both .yaml and .yml extension * Molecule.from_file() support both .yaml and .yml extension * add .yml test case in TestIMolecule.test_to_from_file_string() * fix NameError: name 'pybel' is not defined in BabelMolAdaptor.from_str() * update properties doc str: mention props be serialized when writing the structure to JSON or YAML but is lost when converting to other formats. * fix mypy * fix test_valid_magmom_struct regex --------- Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information