Skip to content

Commit

Permalink
get atoms from wfn in case no xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
m-julian committed May 3, 2024
1 parent e9f7e01 commit 129db62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ichor_core_subpackage/ichor/core/files/point_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def atoms(self) -> Atoms:
return self.wfn.atoms.to_angstroms()

raise FileNotFoundError(
f"There is no .xyz file in the current {self.__class__.__name__} instance: {self.path.absolute()}"
f"There is no .xyz or .wfn file in the current {self.__class__.__name__} instance: {self.path.absolute()}"
)

def atoms_from_file(self, file_with_atoms: HasAtoms) -> Atoms:
Expand Down

0 comments on commit 129db62

Please sign in to comment.