Skip to content

Commit

Permalink
CifParser().get_structure()[0] gives weird results
Browse files Browse the repository at this point in the history
  • Loading branch information
maurov committed Oct 12, 2023
1 parent d1216f2 commit f2a418d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions larch/xrd/struct2xas.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def read_structure(self, file):
self.mol = None
self.nframes = 1
self.cif = CifParser(self.file)
# self.struct = Structure.from_file(self.file)
self.struct = self.cif.get_structures()[0]
self.struct = Structure.from_file(self.file)
#self.struct = self.cif.get_structures()[0] #: NOT WORKING!
logger.debug("structure created from a CIF file")
elif ext == ".xyz":
self.is_xyz = True
Expand Down

0 comments on commit f2a418d

Please sign in to comment.