Skip to content

Commit

Permalink
Merge pull request #165 from pyscal/add_repetitions_for_readin
Browse files Browse the repository at this point in the history
Add repetitions for reading
  • Loading branch information
srmnitc authored Aug 19, 2024
2 parents 1992882 + 7fd7029 commit 6208dce
Show file tree
Hide file tree
Showing 4 changed files with 9 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.14
current_version = 0.9.15
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.14
version: 0.9.15
6 changes: 6 additions & 0 deletions atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ def _read_structure(
basis_box=None,
basis_positions=None,
label=None,
repetitions=None,
):
"""
Read in structure from file or ase object
Expand Down Expand Up @@ -773,6 +774,9 @@ def _read_structure(
basis_positions: nX3 list, optional
specify the relative positions of atoms in the unit cell. Not required if lattice is provided
repetitions: tuple, optional
specify the number of repetitions of the unit cell in each direction. Default is None.
Returns
-------
Expand All @@ -789,6 +793,8 @@ def _read_structure(
datadict["box"] = basis_box
if basis_positions is not None:
datadict["positions"] = basis_positions
if repetitions is not None:
datadict["repetitions"] = repetitions

s = System(
filename,
Expand Down
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.14',
version='0.9.15',
author='Abril Azocar Guzman, Sarath Menon',
author_email='[email protected]',
description='Ontology based structural manipulation and quering',
Expand Down

0 comments on commit 6208dce

Please sign in to comment.