Skip to content

Commit

Permalink
Merge pull request #48 from pyscal/add_reps
Browse files Browse the repository at this point in the history
Add reps
  • Loading branch information
srmnitc authored Aug 6, 2024
2 parents 7ff436b + 327b9af commit 02ba68e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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 = 3.2.6
current_version = 3.2.7
commit = True
tag = True

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

setup(
name='pyscal3',
version='3.2.6',
version='3.2.7',
author='Sarath Menon',
author_email='[email protected]',
description='Python library written in C++ for calculation of local atomic structural environment',
Expand Down
11 changes: 7 additions & 4 deletions src/pyscal3/structure_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def make_crystal(structure,
box[1] = repetitions[1]*np.array(box[1])
box[2] = repetitions[2]*np.array(box[2])

#finally, add repetitions to sdict
sdict['repetitions'] = repetitions

if return_structure_dict:
return patoms, box, sdict

Expand Down Expand Up @@ -177,13 +180,13 @@ def general_lattice(positions,
}
}
}

atoms, box = make_crystal("custom", lattice_constant=lattice_constant,
atoms, box, sdict_mod = make_crystal("custom", lattice_constant=lattice_constant,
repetitions=repetitions, noise=noise, element=element,
structures=sdict)
structures=sdict, return_structure_dict=True)

if return_structure_dict:
return atoms, box, sdict
return atoms, box, sdict_mod

return atoms, box

Expand Down

0 comments on commit 02ba68e

Please sign in to comment.