picmi-standard / picmi

Standard input format for Particle-In-Cell codes
https://picmi.readthedocs.io
Other
35 stars 25 forks source link

Modernize Models & Validation with Pydantic #94

Open ax3l opened 1 year ago

ax3l commented 1 year ago

It was suggested today by @roussel-ryan to use a more formal schema to abstract PICMI inputs and extensions and compatibility with different codes.

Refs.:

roussel-ryan commented 1 year ago

Reference for use in xopt https://github.com/ChristopherMayes/Xopt/blob/main/xopt/generators/bayesian/options.py

ax3l commented 1 year ago

This is similar to #63 (more) / #71 (less) but with clear paths to validate and being able to export data models for post-processing.

BrianMarre commented 1 year ago

I agree with @ax3l abstracting PICMI further from the codes would be a good idea and testing for correct configuration on the picmi side would also be helpfull.