-
Notifications
You must be signed in to change notification settings - Fork 54
Dataset-specific JSON/TOML configuration #1646
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
Dataset-specific JSON/TOML configuration #1646
Conversation
3d5b70a to
37d57ab
Compare
| and is interpreted as a regular expression against which the dataset name | ||
| (full path or path within an iteration) must match.)END"; | ||
| auto throw_up = [&](std::string const &additional_info, | ||
| auto &&...additional_path) { |
Check notice
Code scanning / CodeQL
Unused local variable Note
| and is interpreted as a regular expression against which the dataset name | ||
| (full path or path within an iteration) must match.)END"; | ||
| auto throw_up = [&](std::string const &additional_info, | ||
| auto &&...additional_path) { |
Check notice
Code scanning / CodeQL
Unused static variable Note
| and is interpreted as a regular expression against which the dataset name | ||
| (full path or path within an iteration) must match.)END"; | ||
| auto throw_up = [&](std::string const &additional_info, | ||
| auto &&...additional_path) { |
Check notice
Code scanning / CodeQL
Declaration hides parameter Note
parameter of the same name
|
|
||
| namespace | ||
| { | ||
| auto readPattern( |
Check warning
Code scanning / CodeQL
Poorly documented large function Warning
c95a953 to
68dc005
Compare
| std::string merge_impl( | ||
| std::string const &defaultValue, | ||
| std::string const &overwrite, | ||
| MPI_Comm_t &&...comm) |
Check notice
Code scanning / CodeQL
Unused local variable Note
| std::string merge_impl( | ||
| std::string const &defaultValue, | ||
| std::string const &overwrite, | ||
| MPI_Comm_t &&...comm) |
Check notice
Code scanning / CodeQL
Unused static variable Note
c0f942e to
fb7a28e
Compare
fb7a28e to
5f77a13
Compare
5f77a13 to
64b006d
Compare
64b006d to
8852258
Compare
8852258 to
a162e8d
Compare
7dda24d to
83e436c
Compare
bdc319f to
0650789
Compare
6b2b5ee to
71536e6
Compare
71536e6 to
5e87f47
Compare
|
|
||
| using position_t = double; | ||
|
|
||
| #if !__NVCOMPILER // see https://github.com/ToruNiina/toml11/issues/205 |
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.
Do you want to filter by NVHPC version, since the issue is fixed in newer releases?
ToruNiina/toml11#205 (comment)
Also, I think you meant to write
| #if !__NVCOMPILER // see https://github.com/ToruNiina/toml11/issues/205 | |
| #if !defined(__NVCOMPILER) // see https://github.com/ToruNiina/toml11/issues/205 |
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'll replace it with the macro used in src/config.cpp:
#if !defined(__NVCOMPILER_MAJOR__) || __NVCOMPILER_MAJOR__ >= 23
ax3l
left a comment
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.
LGTM - thank you! 🎉
Please review the changes to docs I made.
Please see last inline comment on NVHPC.
might also be good for documentation purposes as JSON is more widely known
Having the same name as the public function provoked errors due to conversion from nlohmann::json types.
3167802 to
5e1e176
Compare
This was initially prototyped in PIConGPU, search for "extended format for JSON options" on this documentation page.
This moves that functionality over into openPMD.
Look at the diff on
examples/13_write_dynamic_configuration.cppfor an example use case.Bringing this to openPMD makes this functionality available in codes other than PIConGPU, and makes it available from TOML as well as from JSON.
TODO: