Skip to content
Prev Previous commit
Next Next commit
Lint parsnip.py
  • Loading branch information
janbridley committed Jan 18, 2025
commit 2cff3a9124b4d8834cd9956b86c0ca96b27678c3
8 changes: 2 additions & 6 deletions parsnip/parsnip.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,8 @@ def __getitem__(self, index: str | Iterable[str]):

Indexing with a list of keys:

>>> cif[["_journal_year", "_chemical_name_mineral", "_symmetry_equiv_pos_as_xyz"]]
['1999',
"'Copper FCC'",
>>> cif[["_chemical_name_mineral", "_symmetry_equiv_pos_as_xyz"]]
["'Copper FCC'",
array([['x,y,z'],
['z,y+1/2,x+1/2'],
['z+1/2,-y,x+1/2'],
Expand All @@ -325,7 +324,6 @@ def __getitem__(self, index: str | Iterable[str]):
output.append(pairs_match if pairs_match is not None else loops_match)
return output[0] if len(output) == 1 else output


def get_from_pairs(self, index: str | Iterable[str]):
"""Return an item from the dictionary of key-value pairs.

Expand Down Expand Up @@ -522,7 +520,6 @@ def build_unit_cell(
pos[unique_indices] if fractional else real_space_positions[unique_indices]
)


@property
def box(self):
"""Read the unit cell as a `freud`_ or HOOMD `box-like`_ object.
Expand Down Expand Up @@ -595,7 +592,6 @@ def wyckoff_positions(self):

return cast_array_to_float(arr=self.get_from_loops(xyz_keys), dtype=float)


@property
def cast_values(self):
"""Bool : Whether to cast "number-like" values to ints & floats.
Expand Down