-
Notifications
You must be signed in to change notification settings - Fork 15
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
Laplacian method for Species class #131
Merged
+165
−44
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c0996fa
Support computation of density laplacian (WIP)
gabrielasd 0412a3a
Add Laplacian of the density method to Species class.
gabrielasd a1c691c
Correct value asinged to second derivative of the density in numeric …
gabrielasd fa9d1e2
Minor changes to dd_dens and laplacian functions in Species class.
gabrielasd 808716d
Update tests for numeric HF dataset.
gabrielasd bc0266e
Update numeric HF test files.
gabrielasd 107358f
Fix hardcoded path to raw data in compilation function.
gabrielasd a5fc0eb
Change kwd argument to positional argument in helper function.
gabrielasd 78e16d0
Add backward numpy compatibility to test_numerical_hf_atomic_density
marco-2023 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why not
def load_numerical_hf_data(data_path=DEFAULT_DATAPATH):
?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.
Even more, I think this function should not have a default value. The only place where it is used inside
run
(line 183), a value is passed to this argument. I think the function that could/should have a default value should be the run function (line 155).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.
Good point!
I think I'll go along the lines of your first suggestion making the change to simply
def load_numerical_hf_data(data_path)
I wouldn't make the change to the
run
function to keep consistency across all compilation scripts, and since the default path gets defined as kwd argument in theload
function from the species module:AtomDB/atomdb/species.py
Lines 782 to 790 in 511a702
The way I see it, the
run
functions will hardly ever get used directly by the user, so having the default value of datapath only inload
(andcompile
) seems OK to me.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.
Looks OK to me. If @marco-2023 and @gabrielasd are happy with it's fine to merge IMHO.