Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an issue where reading ORCA calculations would crash the program #286

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignoring some Ruff errors
  • Loading branch information
YHordijk committed Jul 18, 2024
commit 49174941bf73cce6d39441c3cee1214a019dbec0
9 changes: 3 additions & 6 deletions src/tcutility/results/__init__.py
Original file line number Diff line number Diff line change
@@ -105,16 +105,13 @@ def read(calc_dir: Union[str, pl.Path]) -> Result:
elif ret.engine == "orca":
try:
ret.orca = orca.get_calc_settings(ret)
except:
except: # noqa
ret.orca = None
# print('Error reading:', calc_dir)
# raise

try:
ret.properties = orca.get_properties(ret)
except:
except: # noqa
ret.properties = None
# print('Error reading:', calc_dir)
# raise

# unload cached KFReaders associated with this calc_dir
to_delete = [key for key in cache._cache if key.startswith(os.path.abspath(calc_dir))]
Loading