Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Oct 24, 2024
1 parent 8c1373c commit d4dab6c
Show file tree
Hide file tree
Showing 11 changed files with 8,153 additions and 9,777 deletions.
5 changes: 3 additions & 2 deletions atomrdf/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,10 +1500,11 @@ def _get_ancestor(self, prop, prov):
propname = _name(prop)

operation = [x[1] for x in self.triples((prop, ASMO.wasCalculatedBy, None))]

if len(operation) > 0:
parent = [x[2] for x in self.triples((prop, ASMO.wasCalculatedBy, None))]
operation = operation[0]
parent = parent[0]
parent = parent[0]
prov[propname]['operation'] = 'output_parameter'
prov[propname]['inputs'] = {}
prov[propname]['inputs']['0'] = _name(parent)
Expand Down Expand Up @@ -1583,7 +1584,7 @@ def _get_ancestor(self, prop, prov):
prov[propname]['inputs']['1'] = _name(dividend)
self._add_to_dict(divisor, prov)
self._add_to_dict(dividend, prov)

print(operation)
prov[propname]['found'] = True
return prov

Expand Down
3 changes: 2 additions & 1 deletion atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,8 @@ def add_interstitial_impurities(

if copy_structure:
#sys = self.duplicate()
sys = System(source=sys.add_atoms({"positions": randpos, "species": element}))
sys = System(source=sys.add_atoms({"positions": randpos, "species": element}))
sys.graph = self.graph
sys.to_graph()
sys.copy_defects(self.sample)
else:
Expand Down
2 changes: 1 addition & 1 deletion atomrdf/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _add_outputs(self, job_dict, activity):
for out in job_dict["outputs"]:
#here we add the classes by property
#call func here
prop = self._select_base_property(out, main_id, ASMO.CalculatedProperty)
prop = self._select_base_property(out, main_id, CMSO.CalculatedProperty)
self.kg.add((prop, UNSAFEASMO.wasCalculatedBy, activity))

if out["associate_to_sample"]:
Expand Down
6,717 changes: 2,719 additions & 3,998 deletions examples/01_getting_started.ipynb

Large diffs are not rendered by default.

266 changes: 96 additions & 170 deletions examples/02_grain_boundaries.ipynb

Large diffs are not rendered by default.

2,833 changes: 1,464 additions & 1,369 deletions examples/03_point_defects.ipynb

Large diffs are not rendered by default.

746 changes: 569 additions & 177 deletions examples/09_structure_modification.ipynb

Large diffs are not rendered by default.

1,292 changes: 536 additions & 756 deletions examples/workflow_examples/01_lammps_pyiron.ipynb

Large diffs are not rendered by default.

991 changes: 575 additions & 416 deletions examples/workflow_examples/02_vasp.ipynb

Large diffs are not rendered by default.

4,752 changes: 2,118 additions & 2,634 deletions examples/workflow_examples/03_murnaghan_pyiron.ipynb

Large diffs are not rendered by default.

323 changes: 70 additions & 253 deletions examples/workflow_examples/04_vacancy_formation_lammps.ipynb

Large diffs are not rendered by default.

0 comments on commit d4dab6c

Please sign in to comment.