Skip to content

Common Power System Model (CPSM) and Network Analysis (CPSM-NA) online documentation.

License

Notifications You must be signed in to change notification settings

cimug-org/cpsm-docs

Repository files navigation

CPSM & CPSM-NA Profile Documentation

This repo contains LinkML artifacts and documentation for the Common Power System Model (CPSM) and CPSM Network Analysis (NA) profile groups. CPSM and CPSM-NA are two foundational Common Information Model (CIM) profile groups that define the classes, class attributes, and associations from the CIM required to model transmission network models and represent solved state estimation or power flow results.

Contributing

To run the site locally use Python 3.11+. It will likely be easiest to use a Python virtual environment as shown below to install the dependencies.

python -m venv venv
venv\Scripts\activate
pip install mkdocs-material linkml

For exact (known working) versions of dependencies, run pip install -r requirements.txt instead.

Once installed, you can then run the documentation site locally with hot reload using mkdocs serve

mkdocs serve

Or you can build the static HTML files once with

mkdocs build

Updating or adding schemas

This project uses LinkML to generate Markdown files from LinkML schemas. So a typical workflow for working on this project is to add or update LinkML .yaml files to the schemas subdirectory, do the following:

  1. Run the make clean command to delete all Markdown files in the subdirectories of docs. It does not change images and stylesheets subdirectories or the docs/index.md file.
make clean
  1. Use LinkML's Markdown generator to create the static Markdown files from the LinkML schema by running make markdown
make mardown

This is using Makefile to hide the complexity of running commands manually. You can see the full usage by running make help.

Note that if a new profile has been added, make sure to add it to the list in the docs/index.md file.

About

Common Power System Model (CPSM) and Network Analysis (CPSM-NA) online documentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published