-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor StrainCollection class (#135)
* Update .prospector.yml for pylint * update type hints from Path to PathLike for utils * remove unused method `Strain.has_alias` * change `Strain.aliases` from attribute to property Using property will force user to use method `add_alias` but not directly add alias to the set of aliases. * add docstring to Strain class * adjust the orders of methods in Strain class * update strain unit tests * adjust method orders of StrainCollection class * update docstrings and type hints in StrainCollection add type hints * update attribute names self._lookup -> self._strain_dict_id self._lookup_indices -> self._strain_dict_index * update `__contains__` in StrainCollection update `__contains__` method * refactor `__eq__` method * refactor `add` method * refactor `filter` method * update tests for remove and filter * update `lookup` method and its tests * add tests for magic methods * update tests * refactor `add_from_file` method * update `save_to_file` method * update `generate_strain_mappings` method
- Loading branch information
1 parent
610d447
commit 5e58957
Showing
2 changed files
with
169 additions
and
165 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
Oops, something went wrong.