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

The .UHF file is now written if the molecule has a uhf larger than 0 #74

Merged
merged 6 commits into from
Nov 18, 2024

Conversation

jonathan-schoeps
Copy link
Contributor

The .UHF file is now only written if the molecule has uhf > 0. This should make it more convenient to use MindlessGen together with g-xTB.

@marcelmbn
Copy link
Member

If we want it to be like this, we should do the same with the .CHRG file.

@jonathan-schoeps
Copy link
Contributor Author

But is this something that would make sense to do, or were these files necessary for something?

@marcelmbn
Copy link
Member

But is this something that would make sense to do, or were these files necessary for something?

They are definitely helpful and necessary for the case that .CHRG and .UHF are not 0 (-> not [neutral + closed-shell]). If a molecule is neutral and doesn't have unpaired electrons, we can also not write the files. I'd say there is no right or wrong in this question, this is probably a question of personal preference.

@marcelmbn marcelmbn added the data-processing Related to steps that do not belong to the core algorithm but only handle the results. label Nov 14, 2024
src/mindlessgen/molecules/molecule.py Outdated Show resolved Hide resolved
src/mindlessgen/molecules/molecule.py Outdated Show resolved Hide resolved
@jonathan-schoeps jonathan-schoeps merged commit f4b7230 into grimme-lab:main Nov 18, 2024
10 checks passed
@jonathan-schoeps jonathan-schoeps deleted the fix/uhf_file branch November 18, 2024 11:56
marcelmbn added a commit that referenced this pull request Nov 18, 2024
* Update Docs (#72)

* update docs, co-workers, pyproject.toml, remove typos

Signed-off-by: Marcel Müller <[email protected]>

* update CHANGELOG, make case more consistent

Signed-off-by: Marcel Müller <[email protected]>

* update mindlessgen.toml

Signed-off-by: Marcel Müller <[email protected]>

* align defaults

Signed-off-by: Marcel Müller <[email protected]>

* update reference default value

Signed-off-by: Marcel Müller <[email protected]>

* update tests

Signed-off-by: Marcel Müller <[email protected]>

* correct inconsistent boolean

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>

* Fix random number generation by removing legacy random number generation (#78)

* fix random number generation by incorporating default_rng

Signed-off-by: Marcel Müller <[email protected]>

* update CHANGELOG.md

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>

* Remove deprecated tests that are not strictly true (#79)

* remove deprecated tests

Signed-off-by: Marcel Müller <[email protected]>

* remove random numpy seed as it's pointless now

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>

* A fixed molecular charge for the molecule generation. (#73)

* A new function to set a fixed charge value

Signed-off-by: Jonathan Schöps <[email protected]>

* latest changes to the fixed charge method

Signed-off-by: Jonathan Schöps <[email protected]>

* Fixed charge and element composition works test have to be added

Signed-off-by: Jonathan Schöps <[email protected]>

* More modular fixed charge routine

Signed-off-by: Jonathan Schöps <[email protected]>

* complete fixed charge routine

Signed-off-by: Jonathan Schöps <[email protected]>

* Removed an unnessesary import

Signed-off-by: Jonathan Schöps <[email protected]>

* more convenient function name

Signed-off-by: Jonathan Schöps <[email protected]>

* Worked in the suggested changes

Signed-off-by: Jonathan Schöps <[email protected]>

* Added a changelog entry

Signed-off-by: Jonathan Schöps <[email protected]>

* Changes a bug with an array type

Signed-off-by: Jonathan Schöps <[email protected]>

* removed left over print statements

Signed-off-by: Jonathan Schöps <[email protected]>

* Implemented requested changes

Signed-off-by: Jonathan Schöps <[email protected]>

* Added a new test to raise a ValueError

Signed-off-by: Jonathan Schöps <[email protected]>

---------

Signed-off-by: Jonathan Schöps <[email protected]>

* `atlist` to `ati` and back conversion (#81)

* implement atlist to ati conversion

Signed-off-by: Marcel Müller <[email protected]>

* add conversion test

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>

* Bug fix were uhf was always 0 if a fixed charge were given (#80)

* bug fix were uhf was always 0 if a fixed charge were given

Signed-off-by: Jonathan Schöps <[email protected]>

* updated a test for the right uhf

Signed-off-by: Jonathan Schöps <[email protected]>

* get rid of redundant code within set_random_charge

Signed-off-by: Jonathan Schöps <[email protected]>

* using atlist as a variable in misscellaneous

Signed-off-by: Jonathan Schöps <[email protected]>

---------

Signed-off-by: Jonathan Schöps <[email protected]>

* adapt CODEOWNERS to commit history (#82)

Signed-off-by: Marcel Müller <[email protected]>

* The `.UHF` file is now written if the molecule has a uhf larger than 0 (#74)

* The .UHF file is now written if the molecule has a uhf larger than 0

Signed-off-by: Jonathan Schöps <[email protected]>

* Writes the .CHRG file if the charge is larger than 0

Signed-off-by: Jonathan Schöps <[email protected]>

* charge and uhf can be None

Signed-off-by: Jonathan Schöps <[email protected]>

* Negative charge is now written aswell

Signed-off-by: Jonathan Schöps <[email protected]>

---------

Signed-off-by: Jonathan Schöps <[email protected]>

* update CHANGELOG

Signed-off-by: Marcel Müller <[email protected]>

---------

Signed-off-by: Marcel Müller <[email protected]>
Signed-off-by: Jonathan Schöps <[email protected]>
Co-authored-by: Jonathan Schöps <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-processing Related to steps that do not belong to the core algorithm but only handle the results.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants