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

Fix vis #41

Merged
merged 3 commits into from
Jun 20, 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 = 3.2.1
current_version = 3.2.2
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.1',
version='3.2.2',
author='Sarath Menon',
author_email='[email protected]',
description='Python library written in C++ for calculation of local atomic structural environment',
Expand Down
9 changes: 9 additions & 0 deletions src/pyscal3/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,15 @@ def __init__(self, filename=None, format="lammps-dump",
self.box = box
self._atoms.from_dict(atoms)

self._refresh_internal_methods()


def _refresh_internal_methods(self):
#customised methods for the class
self.modify = AttrSetter()
self.modify.head = operations
mapdict = {}

#repeat methid
mapdict["repeat"] = update_wrapper(partial(operations.repeat, self), operations.repeat)
mapdict["transform_to_cubic_cell"] = update_wrapper(partial(operations.extract_cubic_representation, self), operations.extract_cubic_representation)
Expand Down Expand Up @@ -259,6 +264,10 @@ def __init__(self, filename=None, format="lammps-dump",
self.show._add_attribute(mapdict)


#def _repeat(self, *args, **kwargs):
# return operations.repeat(self, *args, **kwargs)
#_repeat.__doc__ = operations.repeat.__doc__

def iter_atoms(self):
return self.atoms.iter_atoms()

Expand Down
Loading