Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
bjmorgan committed Jun 20, 2024
1 parent 46b8aff commit c65d6c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bsym/symmetry_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,19 @@ def similarity_transform( self, s, label=None ):
s_new.set_label( label )
return s_new

def operate_on( self, configuration ):
def operate_on(self, configuration):
"""
Return the Configuration generated by appliying this symmetry operation
Return the Configuration generated by applying this symmetry operation
Args:
configuration (Configuration): the configuration / occupation vector to operate on
Returns:
(Configuration): the new configuration obtained by operating on configuration with this symmetry operation.
"""
if not isinstance( configuration, Configuration ):
if not isinstance(configuration, Configuration):
raise TypeError
return Configuration( configuration.vector[ self.index_mapping ] )
#return Configuration( self.matrix.dot( configuration.vector ) )
return Configuration(configuration.vector[self.index_mapping])

def character( self ):
"""
Expand Down

0 comments on commit c65d6c9

Please sign in to comment.