-
Notifications
You must be signed in to change notification settings - Fork 5
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
small-fixes #72
base: master
Are you sure you want to change the base?
small-fixes #72
Conversation
could you please add a test for this? |
|
with `None` type converter
@briling checks failed because of
./pyproject.toml: 'numpy >= 1.22.3, < 1.27',
./environment.yml: - numpy=1.21.2=py39h20f2e39_0 EDIT: |
- alpha/beta split is purely defined by `omods` ARG (evaluated in `get_repr()`)
mols = utils.load_mols([xyz_in], [0], [None], 'minao', ecp='def2-svp') | ||
dms = utils.mols_guess(mols, [xyz_in], 'LB', spin=[None]) |
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.
this was actually weird ! because even specifying spin=None
the func would still returned merged alpha-beta representations (which is the X_true
we loaded and evaluated) !
But it made me realized that it's a bit dangerous now too, because if you only use the bond()
function with a single dm (for all electrons) and you don't change the parameters omods=[None]
(default is [alpha, beta]
) then you get an error ! (... I think ...)
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.
The spin/omod thing was a mess ahaha
let me know what you think ! (I left a few comments)
Then I'll try to apply the same procedure to the atom-representation!
@@ -116,10 +113,13 @@ def get_repr(mols, xyzlist, guess, xc=defaults.xc, spin=None, readdm=None, | |||
all_atoms = np.array([z for mol in mols for z in mol.elements if z in only_z], ndmin=2) | |||
else: | |||
all_atoms = np.array([mol.elements for mol in mols]) | |||
spin = np.array(spin) ## a bit dirty but couldn't find a better way to ensure Iterable type! |
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.
a pity that it has to be done twice when calling the main()
script, but couldn't find any work around !
|
spin
argument (closes SPAHM(b) generation #71)[moved to issue Fix deprecations/errors for
numpy >=2.0.0
#74]fix implicit
dtype=object
(deprecatednumpy => 2.*.*
?)