Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions simphony/cuds/abc_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from ..core import CUBA
from .abc_dataset import ABCDataset
from .utils import deprecated


class ABCLattice(ABCDataset):
Expand Down Expand Up @@ -137,62 +136,6 @@ def __len__(self):
"""
return self.count_of(CUBA.NODE)

@deprecated
def get_node(self, index): # pragma: no cover
"""
Deprecated. Use get() instead.

Get the lattice node corresponding to the given index.

Parameters
----------
index : int[3]
node index coordinate

Returns
-------
node : LatticeNode

"""
return self.get(index)

@deprecated
def update_nodes(self, nodes): # pragma: no cover
"""
Deprecated. Use update() instead.

Update the corresponding lattice nodes.

Parameters
----------
nodes : iterator of LatticeNodes

"""
self.update(nodes)

@deprecated
def iter_nodes(self, indices=None): # pragma: no cover
"""
Deprecated. Use iter() instead.

Get an iterator over the LatticeNodes described by the indices.

Parameters
----------
indices : iterable set of int[3], optional
When indices (i.e. node index coordinates) are provided, then nodes
are returned in the same order of the provided indices. If indices
is None, there is no restriction on the order of the returned
nodes.

Returns
-------
iterator:
An iterator over LatticeNode objects

"""
return self.iter(indices)

@property
def primitive_cell(self):
return self._primitive_cell
Expand Down
Loading