Skip to content

Commit

Permalink
Eliminate property decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
cschlick committed Nov 11, 2024
1 parent 934912b commit b6aec6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmtbx/geometry_restraints/geo_file_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,14 @@ def to_proxy(self):

class BondEntry(Entry):

@property
def has_sym_op(self):
if "sym.op." in self._numerical.keys() and self._numerical["sym.op."] not in ["",None]:
return True
else:
return False

def to_proxy(self):
if self.has_sym_op:
if self.has_sym_op():
asu_mappings = direct_space_asu.non_crystallographic_asu_mappings(
sites_cart=self.sites_cart)
pair_generator = crystal.neighbors_fast_pair_generator(
Expand Down

0 comments on commit b6aec6b

Please sign in to comment.