Skip to content

Commit

Permalink
fixed reading of errors in phase cif
Browse files Browse the repository at this point in the history
  • Loading branch information
rozyczko committed Feb 14, 2025
1 parent af4b833 commit ca28ab7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/easydiffraction/job/model/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Phase(ecPhase):

def __init__(self, name, spacegroup=None, cell=None, atoms=None, scale=None, interface=None, enforce_sym=True, **kwargs):
super(Phase, self).__init__(name, spacegroup, cell, atoms, scale, enforce_sym=enforce_sym)
# we need to overwrite cell and atoms, since ecPhase constructor doesn't append the error info
self.cell = cell
self.atoms = atoms
# spacegroup is not being overwritten, since no error info is being appended
self.interface = interface

def add_atom(self, *args, **kwargs):
Expand Down

0 comments on commit ca28ab7

Please sign in to comment.