@@ -113,6 +113,7 @@ def compute_atom_two(self, mapper=None, bond_extra=0.45):
113113 self .projected_atom = projected_atom
114114 else :
115115 self .atom_two = compute_atom_two (self , mapper , bond_extra )
116+ self ._traits_need_update = True
116117
117118 def compute_bonds (self , mapper = None , bond_extra = 0.45 ):
118119 """
@@ -123,6 +124,7 @@ def compute_bonds(self, mapper=None, bond_extra=0.45):
123124 """
124125 self .atom_two .compute_bonds (self .atom ['symbol' ], mapper = mapper , bond_extra = bond_extra )
125126 self .compute_molecule ()
127+ self ._traits_need_update = True
126128
127129 def compute_bond_count (self ):
128130 """
@@ -175,6 +177,7 @@ def add_field(self, field):
175177 self .field = AtomicField (new_field , field_values = new_field_values )
176178 else :
177179 raise TypeError ('field must be an instance of exatomic.field.AtomicField or a list of them' )
180+ self ._traits_need_update = True
178181
179182 def add_molecular_orbitals (self , * field_params , mocoefs = None , vector = None ):
180183 """
@@ -190,6 +193,7 @@ def add_molecular_orbitals(self, *field_params, mocoefs=None, vector=None):
190193 if not hasattr (self , '_basis_set_order' ):
191194 print ('Warning: without the basis_set_order, MOs are likely incorrect.' )
192195 _add_mos_to_universe (self , * field_params , mocoefs = mocoefs , vector = vector )
196+ self ._traits_need_update = True
193197
194198 def update_molecular_orbitals (self , * field_params , mocoefs = None , vector = None ):
195199 """
@@ -203,6 +207,7 @@ def update_molecular_orbitals(self, *field_params, mocoefs=None, vector=None):
203207 if not hasattr (self , 'basis_functions' ):
204208 raise AttributeError ('Universe has no basis functions, add_molecular_orbitals first' )
205209 _update_mos (self , * field_params , mocoefs = mocoefs , vector = vector )
210+ self ._traits_need_update = True
206211
207212 def _custom_traits (self ):
208213 """
0 commit comments