-
Notifications
You must be signed in to change notification settings - Fork 17
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
Basis Set Parsers and Test File #11
base: master
Are you sure you want to change the base?
Conversation
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.
Please update your pull request (by pushing corresponding commits to sasadada:master).
BasisSetModule.jl
Outdated
@@ -0,0 +1,635 @@ | |||
module BasisSetModule | |||
export BasisSet, readTX93, readGaussian, readGAMESSUS, readNWChem, readDalton |
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.
can we use readBasisSetTX93, readBasisSetGaussian, etc. to keep the naming convention intact?
BasisSetModule.jl
Outdated
end | ||
|
||
# Element Dictionary : Full name to Symbol | ||
ElementSymbols = Dict{String,String}( |
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.
To me this seems to be functionally connected to the Element type defined in Atom.jl. Can we move this there and create an additional Creator-method based on this?
BasisSetModule.jl
Outdated
|
||
function dict(children) | ||
dicty = Dict() | ||
for i = 1:length(children) |
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.
Could you comment on your reason for breaking with the indentation scheme? As you are breaking indentation throughout this document, maybe you could adjust wherever it isn't necessary.
BasisSetModule.jl
Outdated
# Supplementary Functions for the PEG BasisSet Parsers | ||
|
||
|
||
function dict(children) |
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.
As the name doesn't appear self-explanatory to me, could you supply documentation (https://docs.julialang.org/en/stable/manual/documentation/)?
BasisSetModule.jl
Outdated
return dicty | ||
end | ||
|
||
function DictElements(children) |
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.
As the name doesn't appear self-explanatory to me, could you supply documentation (https://docs.julialang.org/en/stable/manual/documentation/)?
BasisSetModule.jl
Outdated
return bases | ||
end | ||
|
||
function SPOrbitals(children) |
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.
While I would assume that this function is separating Shared-SP basis functions, could you still supply documentation (https://docs.julialang.org/en/stable/manual/documentation/) to be on the safe side?
BasisSetModule.jl
Outdated
return Primitives | ||
end | ||
|
||
function dictDalton(children) |
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.
As the name doesn't appear self-explanatory to me, could you supply documentation (https://docs.julialang.org/en/stable/manual/documentation/)?
BasisSetModule.jl
Outdated
end | ||
|
||
|
||
function basesDalton(children) |
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.
As the name doesn't appear self-explanatory to me, could you supply documentation (https://docs.julialang.org/en/stable/manual/documentation/)?
BasisSetModule.jl
Outdated
end | ||
|
||
|
||
function CreateCorrectPrimitives(children) |
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.
Following the naming conventions (http://schurkus.com/2015/12/05/quantumlab-design-guidelines/), I would expect this function to be computePrimitives
("correct" seems redundant, because who would be interested in "erroneos" Primitives). I'd assume that this function takes a list of Nodes
(btw. could you use Type assertions (https://docs.julialang.org/en/stable/manual/methods/#Defining-Methods-1) here?) and extracts all PrimitiveGaussianBasisFunctions
from them and their children recursively. If this is not the aim of this function maybe a totally different name might be much more explanatory?
BasisSetModule.jl
Outdated
return LinearFactor | ||
end | ||
############################################################################################################################################ | ||
# Main Functions |
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.
I'd like to go over these functions in detail. This will probably be much easier once you have made the other adjustments, so I'll wait until then. Same holds for runtests.jl
below. Thank you for updating your pull request (simply push your changes to sasadada:master).
Hi Ivan, |
Hi Henry, |
Hi Ivan, are there still changes you wanted to make? I assume you don't want to spend too much more time on this project, so if not, I would suggest you just add tests for your functionalities to |
Also, it would be great, if you could make sure to have Allow edits from maintainers checked on the right of this conversation. Thanks. |
No description provided.