Skip to content

Commit

Permalink
Merge pull request #599 from pyiron/scaled_positions
Browse files Browse the repository at this point in the history
scaled_positions updated
  • Loading branch information
jan-janssen committed May 3, 2020
2 parents a0e3a40 + f8e68eb commit cf98764
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyiron/atomistics/structure/atoms.py
Expand Up @@ -96,6 +96,7 @@ def __init__(
species=None,
**qwargs
):
warnings.simplefilter("default")
if symbols is not None:
if elements is None:
elements = symbols
Expand Down Expand Up @@ -3549,15 +3550,19 @@ def rotate_euler(self, center=(0, 0, 0), phi=0.0, theta=0.0, psi=0.0):
@property
def scaled_positions(self):
warnings.warn(
"scaled_positions is deprecated. Use get_scaled_positions instead",
"scaled_positions is deprecated as of vers. 0.2"
+ " - not guaranteed to work from vers. 0.3 "
+ "Use get_scaled_positions instead",
DeprecationWarning,
)
return self.get_scaled_positions(wrap=False)

@scaled_positions.setter
def scaled_positions(self, positions):
warnings.warn(
"scaled_positions is deprecated. Use set_scaled_positions instead",
"scaled_positions is deprecated as of vers. 0.2"
+ " - not guaranteed to work from vers. 0.3 "
+ "Use set_scaled_positions instead",
DeprecationWarning,
)
self.set_scaled_positions(positions)
Expand Down

0 comments on commit cf98764

Please sign in to comment.