Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repetitions for readin #165

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading