-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use type(obj).__name__ to determime logfile type
Previously statmech.py used `isinstance(x, GaussianLog, QchemLog, MolproLog))` when determining if the logfile has the proper methods implemented. This may cause issues when adding more subclasses, if these lines are not properly modified. This commit reduces that potential error by replacing that command with `isinstance(x, Log) and type(obj).__name__ != 'Log'`
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters