-
Notifications
You must be signed in to change notification settings - Fork 252
Miscellaneous changes, including a change to how species are named. #2921
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,10 +365,11 @@ def make_new_species(self, object, label="", reactive=True, check_existing=True, | |
| spec.molecular_weight = Quantity(spec.molecule[0].get_molecular_weight() * 1000.0, "amu") | ||
|
|
||
| if generate_thermo: | ||
| self.generate_thermo(spec) | ||
| # Rename from thermo library label only if no user-provided label exists yet. | ||
|
||
| self.generate_thermo(spec, rename=not bool(spec.label)) | ||
|
Comment on lines
+368
to
+369
|
||
|
|
||
| # If the species still does not have a label, set initial label as the SMILES | ||
| # This may change later after getting thermo in self.generate_thermo() | ||
| # (applies when generate_thermo is False, or when no library match was found) | ||
| if not spec.label: | ||
| spec.label = spec.smiles | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After switching the declared types to
Molecule/Atom, ensure those names are in scope in this module under both Python execution and Cython compilation. If they aren’t already imported at module scope, add the appropriate imports (or local imports in this function) to avoidNameError/compile-time failures.