-
Notifications
You must be signed in to change notification settings - Fork 33
chore: update pre-commit #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
396748e
1e0cca8
5849ebf
62d854b
5bc77ca
bd8ab53
85910ec
b047974
0a16453
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ | |
| Not to be included with code distributions. | ||
| """ | ||
|
|
||
|
|
||
| import math | ||
| import re | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
|
|
||
| * No News Added: fix CI badge and target in README.rst | ||
|
|
||
|
|
||
| **Changed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| **Added:** | ||
|
|
||
| * No news needed: updating docformatter not user facing | ||
|
|
||
| **Changed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Deprecated:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Removed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Fixed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Security:** | ||
|
|
||
| * <news item> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,6 @@ | |
| * SymmetryError | ||
| """ | ||
|
|
||
|
|
||
| import os | ||
| import sys | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,19 +82,19 @@ class Atom(object): | |
| Attributes | ||
| ---------- | ||
| element : str | ||
| The string type of the atom. An element or ion symbol. | ||
| The string type of the atom. An element or ion symbol, default "". | ||
| xyz : numpy.ndarray | ||
| The fractional coordinates in the associated `lattice`. | ||
| label : str | ||
| A unique string label referring to this atom, for example, "C_1". | ||
| The unique string label referring to this atom, for example, "C_1". | ||
| The *label* can be used to reference this atom when contained in | ||
| a `Structure` object. | ||
| a `Structure` object, default "". | ||
| occupancy : float | ||
| The fractional occupancy of this atom. | ||
| The fractional occupancy of this atom, default 1.0. | ||
| lattice : Lattice | ||
| Coordinate system for the fractional coordinates `xyz` and | ||
| The coordinate system for the fractional coordinates `xyz` and | ||
| the tensor of atomic displacement parameters `U`. | ||
| Use the absolute Cartesian coordinates when ``None``. | ||
| Use the absolute Cartesian coordinates when ``None`` as the default. | ||
|
|
||
| Note | ||
| ---- | ||
|
|
@@ -104,21 +104,17 @@ class Atom(object): | |
| # Private attributes | ||
| # | ||
| # _U : 3-by-3 ndarray | ||
| # Internal storage of the displacement parameters. | ||
| # The internal storage of the displacement parameters. | ||
|
|
||
| # instance attributes that have immutable default values | ||
| element = "" | ||
| """str: Default values of `element`.""" | ||
|
|
||
| label = "" | ||
| """str: Default values of `label`.""" | ||
|
|
||
| occupancy = 1.0 | ||
| """float: Default values of `occupancy`.""" | ||
|
|
||
| _anisotropy = False | ||
| lattice = None | ||
| """None: Default values of `lattice`.""" | ||
|
|
||
| def __init__( | ||
| self, | ||
|
|
@@ -294,8 +290,8 @@ def xyz_cartn(self): | |
| coordinates. | ||
|
|
||
| This is computed from fractional coordinates `xyz` and the | ||
| current `lattice` setup. Assignment to *xyz_cartn* or | ||
| its components is applied on fractional coordinates `xyz`. | ||
| current `lattice` setup. Assignment to *xyz_cartn* or its | ||
| components is applied on fractional coordinates `xyz`. | ||
| """ | ||
| if not self.lattice: | ||
| rv = self.xyz | ||
|
|
@@ -439,7 +435,8 @@ def _set_uij(self, i, j, value): | |
|
|
||
| @property | ||
| def Uisoequiv(self): | ||
| """float : The isotropic displacement parameter or an equivalent value. | ||
| """float : The isotropic displacement parameter or an equivalent | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please put into standard form. Don't lead with the type |
||
| value. | ||
|
|
||
| Setting a new value rescales tensor `U` so it yields equivalent | ||
| direction-averaged displacements. | ||
|
|
@@ -533,7 +530,8 @@ def Uisoequiv(self, value): | |
|
|
||
| @property | ||
| def Bisoequiv(self): | ||
| """float : The Debye-Waller isotropic displacement or an equivalent value. | ||
| """float : The Debye-Waller isotropic displacement or an | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix |
||
| equivalent value. | ||
|
|
||
| This equals ``8 * pi**2 * Uisoequiv``. Setting a new value | ||
| rescales `U` tensor to yield equivalent direction-average of | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| Attributes | ||
| ---------- | ||
| cartesian : Lattice | ||
| Constant instance of Lattice, default Cartesian system. | ||
| The constant instance of Lattice, default Cartesian system. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revisit language, this is not to clear |
||
| """ | ||
|
|
||
| import math | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this