DeepDriveMD / DeepDriveMD-pipeline

DeepDriveMD: Deep-Learning Driven Adaptive Molecular Simulations
MIT License
15 stars 9 forks source link

Class documentation for Pydantic configs. #42

Open braceal opened 3 years ago

braceal commented 3 years ago

Each pydantic data class should have documentation on each parameter. It will also be very important to document the exceptions validation can raise so users know how to set the parameters.

To do this, after each property in the pydantic class, add a """_description_""" block. For example:

class MyConfig(BaseSettings):
    """Configuration for ..."""

    output_path: Path
    """Path to write output files to."""