-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up
core.surface
comments and docstrings (#3691)
* track test files * clean up test code * some `sourcery` fixes * remove debug files * legacy fix for #3681 * `sourcery` fixes (no functional change) * (WIP) add type annotations for Slab * WIP-add more type annotations * fix hkl_transformation types plus some mypy errors * remove tolist() and replace import Self * revert renaming get_d * fix private func naming * fix _is_already_analyzed * tweak docstring * adjust method order in Slab class * docstring and format tweaks * docstring tweaks * docstring tweaks * fix arg name specie * use species over specie * clean up symmetrically_remove_atoms * ignore override mypy error in Slab * fix merge conflicts * pre-commit auto-fixes * make docstring more concise and fix mypy error * organise __init__ * pre-commit auto-fixes * NOTE: rename `get_slab` to `_get_slab` * pre-commit auto-fixes * revert renaming of get_slab to _get_slab * docstring tweak * further clean up and fix test * ruff fix * fix unit test for Slab.as_dict * add list to np.ndarray convert in slab.from_dict * move private methods to where its used * finish tweaking comments in get_slab method * relocate method to where its used * some mypy fixes * make comment and docstring more concise * add comments for calculate_possible_shifts * add TODO and DEBUG tags * remove DEBUG tags * add TODO tag and docstring for get_z_ranges * add comments for get_slabs method * clarify second matching * mypy fixes * rename a var * clean up `move_to_other_side` method * finish cleaning up `repair_broken_bonds` * revise docstring * clarify comments for `nonstoichiometric_symmetrized_slab` * replace `point` with `site` * clean up `get_d` * docstring tweaks * clean up init for ReconstructionGenerator * finish cleaning `ReconstructionGenerator` * more comment tweaks * tweak module docstring * rename private `is_already_analyzed` to `is_in_miller_family` * put `generate_all_slabs` closer to `SlabGenerator` * move `get_slab_regions` and `center_slab` closer to `Slab` * finish cleaning up `surface` * add another tag * fix typos * refactor ReconstructionGenerator.get_unreconstructed_slabs * CONSTANT_CASE module-scoped reconstructions_archive --------- Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information
1 parent
4ec5e5a
commit 55869a1
Showing
6 changed files
with
1,563 additions
and
1,338 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
Oops, something went wrong.