Enhancement of URBANopt GeoJSON that can be consumed by DiTTo reader
Project description
urbanopt-ditto-reader
Enhancement of URBANopt™ GeoJSON that can be consumed by DiTTo reader More detailed documentation is available on the URBANopt documentation page
Installation Pre-requisites
- Python >=3.7
Installation
pip install urbanopt-ditto-reader
Running the converter
You are expected to have an existing URBANopt project dir with successful simulations of electrical network components before using this package.
Use the included Command Line Interface:
ditto_reader_cli -h
For help text in the terminal:
ditto_reader_cli run-opendss -h
Example command to run the ditto-reader:
ditto_reader_cli run-opendss -s <ScenarioFile> -f <FeatureFile>
Or build and use a config file (not necessary if using flags like the above example):
ditto_reader_cli run-opendss -c urbanopt_ditto_reader/example_config.json
If you are using your own config.json file, use the following fields:
- "urbanopt_scenario_file": Required, Path to scenario csv file
- "urbanopt_geojson_file": Required, Path to feature json file
- "equipment_file": Optional, Path to custom equipment file
- "opendss_folder": Required, Path to dir created by this command, holding openDSS output
- "use_reopt": Required, Boolean (True/False) to analyze reopt data, if it has been provided
- "start_time": Optional, String timestamp of the start time of the simulation. Uses format "YYYY/MM/DD HH:MM:SS". Cross referenced with the timestamps in the SCENARIO_NAME/opendss/profiles/timestamps.csv file created from profiles in SCENARIO_NAME/FEATURE_ID/feature_reports/feature_report_reopt.csv if use_reopt is true and SCENARIO_NAME/FEATURE_ID/feature_reports/default_feature_report.csv if use_reopt is false. It runs the entire year if the time is not found.
- "end_time": Optional, String timestamp of the end time of the simulation. Uses format "YYYY/MM/DD HH:MM:SS". Cross referenced with the timestamps in the SCENARIO_NAME/opendss/profiles/timestamps.csv file created from profiles in SCENARIO_NAME/FEATURE_ID/feature_reports/feature_report_reopt.csv if use_reopt is true and SCENARIO_NAME/FEATURE_ID/feature_reports/default_feature_report.csv if use_reopt is false. It runs the entire year if the time is not found.
- "timestep": Optional, Float number of minutes between each simulation. If smaller than timesteps (or not an even multiple) provided by the reopt feature reports (if use_repot is true), or urbanopt feature reports (if use_reopt is false), an error is raised
If either start_time and end_time are invalid or set to None, the simulation will be run for all timepoints provided by the reopt simulation (if use_reopt is true) or urbanopt simulation (if use_reopt is false)
Developer installation
Clone the repository:
git clone https://github.com/urbanopt/urbanopt-ditto-reader.git
Change directories into the repository:
cd urbanopt-ditto-reader
Install the respository:
pip install -e .
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
Built Distribution
File details
Details for the file urbanopt-ditto-reader-0.3.8.tar.gz
.
File metadata
- Download URL: urbanopt-ditto-reader-0.3.8.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0423232a57231ca83905f5f0a1ae7516b9bfed651f6295046febfbb5705d0b8 |
|
MD5 | 57e8f5610f711ac565f97df827076cbc |
|
BLAKE2b-256 | 8ba6575b7abce3110f8dc0a6afd54c31a274905594e5f2923ba52f8de3b3d1f4 |
File details
Details for the file urbanopt_ditto_reader-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: urbanopt_ditto_reader-0.3.8-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d345d2ff3056e6eda06ec1bb0683f5309ef2bbff074cf610ea4d7793ea598851 |
|
MD5 | dc492ebc9c4e9adfe8f8e59dc261f11d |
|
BLAKE2b-256 | 64bbcc3ad7596612e27d1c1b532be2b32e55141496a3008027d2dddc6b9b6940 |