Skip to content

Commit

Permalink
Fix unrecognized Gaussian input format: *.com and *.gjf
Browse files Browse the repository at this point in the history
  • Loading branch information
FanwangM committed Dec 17, 2024
1 parent f8af4e8 commit f353c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iodata/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def _find_format_modules():
if not module_info.ispkg:
format_module = import_module("iodata.formats." + module_info.name)
if hasattr(format_module, "PATTERNS"):
result[module_info.name] = format_module
for pattern in format_module.PATTERNS:
result[pattern.replate("*.", "")] = format_module

return result


Expand Down

0 comments on commit f353c1f

Please sign in to comment.