Skip to content

Commit eae61fc

Browse files
committed
Merge remote-tracking branch 'tjd/master'
2 parents 37d0f3e + 47274ac commit eae61fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

exatomic/algorithms/orbital.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def update_molecular_orbitals(universe, *field_params, mocoefs=None, vector=None
407407
universe (exatomic.container.Universe): universe with basis_functions attribute
408408
field_params (pd.Series or rmin, rmax, nr): dimensions of new numerical grid
409409
"""
410-
del universe.__dict__['_field']
410+
if hasattr(universe, '_field'):
411+
del universe.__dict__['_field']
411412
if isinstance(field_params[0], pd.Series):
412413
field_params = field_params[0]
413414
else:

0 commit comments

Comments
 (0)