Repository for model formulation of Grid Optimization Competition #3
Project description
Bid-DS-data-model
Pydantic model of Bid-DS json format. Support for loading, validation, editing, saving.
🚧🚧 Under Construction 🚧🚧
Current work is to set up the Pydantic model for the json format. If the json format changes, please:
- Create a new folder named YYYYMMDD (with today's current date) under Bid-DS-data-model/input
- Copy and paste the .tex files of the new version into the folder
- Commit and push
If you want to work on automatically generating the Pydantic model, you'll first want to create a conda/Python environment and install this package in developer mode:
conda activate YOUR_ENV_NAME
cd Bid-DS-data-model
pip install -e .
Then you'll want to add code to Bid-DS-data-model/datamodel/create.py and run it from the command line as in:
cd Bid-DS-data-model
python datamodel/create.py 20220128
To use the created Pydantic model for reading and validating, do:
from datamodel.input.data import InputDataFile
problem_data = InputDataFile.load(problem_data_file_name)
If no errors are raised, then validation succeeded and problem_data is a Pydantic model containing the problem data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file GO-3-data-model-1.0.0.tar.gz
.
File metadata
- Download URL: GO-3-data-model-1.0.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e0186671862aa6bb4bc8f726538fc5e4db2306cea4ae193190aaa6099d04212 |
|
MD5 | bf49c689fee3c0afef92dc01cb71581f |
|
BLAKE2b-256 | a283a38ff9d8f40e749dd6001444c270b04645e55371a7cf382d286f38f8826d |