Skip to content

Commit

Permalink
Merge pull request #162 from pyscal/add_plot3d
Browse files Browse the repository at this point in the history
Add plot3d
  • Loading branch information
srmnitc authored Aug 15, 2024
2 parents 4fbaf5a + e4d9b29 commit 0577c57
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.11
current_version = 0.9.12
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ url: 'https://atomrdf.pyscal.org'
license: "MIT"
repository-code: https://github.com/pyscal/atomRDF
type: software
version: 0.9.11
version: 0.9.12
13 changes: 13 additions & 0 deletions atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2569,3 +2569,16 @@ def copy_defects(self, parent_sample):
if parent_sample is None:
return
self.graph.copy_defects(self.sample, parent_sample)

def plot3d(self, *args, **kwargs):
try:
from pyiron_atomistics.atomistics.structure.atoms import (
ase_to_pyiron,
pyiron_to_ase,
)
except ImportError:
raise ImportError("Please install pyiron_atomistics")
ase_structure = self.write.ase()
pyiron_structure = ase_to_pyiron(ase_structure)
return pyiron_structure.plot3d(*args, **kwargs)

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='atomrdf',
version='0.9.11',
version='0.9.12',
author='Abril Azocar Guzman, Sarath Menon',
author_email='[email protected]',
description='Ontology based structural manipulation and quering',
Expand Down

0 comments on commit 0577c57

Please sign in to comment.