Parsing basis set for Quantum Chemistry(QC) from JSON files? #2600
Unanswered
rdguerrerom
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Once you have defined the C++ struct you want to put the data in, this section could be interesting: https://github.com/nlohmann/json#arbitrary-types-conversions |
Beta Was this translation helpful? Give feedback.
0 replies
-
@nlohmann Thanks a lot for your advice, So far I have the following piece of code:
that I want to use to read the content of JSON files with internal structure as the following:
How can I adapt the example you are referring to read the content of the file in one go? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Many basis-sets for QC can be downloaded in JSON format from EMSL. The task that is left, is loading the information to an array of structures in C++ parsing the information for the coefficients and the exponents to double-precision floating-point numbers properly. I am wondering what could be a good starting point for using json to accomplish this task efficiently?
Any ideas would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions