Skip to main content

Midas Commercial Data Simulator

The comdata module, provided by the midas-comdata package, provides a simulator for a commercial building reference data set.

Version: 2.1

Usage

The intended use-case for the time simulator is to be used inside of midas. However, it can be used in any mosaik simulation scenario.

Inside of midas

To use the store inside of midas, add comdata to your modules

    my_scenario:
      modules:
        - comdata
        # - ...

and provide a scope and a configuration:

    my_scenario:
      # ...
      comdata_params:
        my_grid_scope:
          interpolate: True
          randomize_data: True
          randomize_cos_phi: True
          mapping:
            22: [[Hospital, 0.002]] # industrial subgrid
            35: [[StripMall, 0.015]]

The number 22, 35 stands for the bus number, which depends on the grid.

Any mosaik scenario

If you don't use midas, you can add the comdata manually to your mosaik scenario file. First, the entry in the sim_config:

  sim_config = {
      "CommercialDataSimulator": {
        "python": "midas_powerseries.simulator:PowerSeriesSimulator"
      },
      # ...
  }

Next, you need to start the simulator (assuming a step_size of 900):

    comdata_sim = world.start(
        "CommercialDataSimulator",
        step_size=900,
        data_step_size=3600,
        start_date="2020-01-01 00:00:00+0100",
        data_path="/path/to/folder/where/dataset/is/located/",
        filename="commercial_profiles.csv",  # this is default
    )

Then the models can be started:

    hospital = comdata_sim.CalculatedQTimeSeries(name="Hospital", scaling=0.002)
    strip_mall = comdata_sim.CalculatedQTimeSeries(name="StripMall", scaling=0.015)

Finally, the modells need to be connected to other entities:

    world.connect(hospital, other_entity, "p_mw", "q_mvar")

License

The data set ist taken from the project Oben Energy Data Initiative.

Metadata

Release files for midas-comdata 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for midas-comdata 2.1.0
File Size Uploaded Provenance
midas_comdata-2.1.0.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for midas-comdata 2.1.0
File Interpreter ABI Platform
midas_comdata-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / midas_comdata-2.1.0.tar.gz

Download URL midas_comdata-2.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e11d0fb516cbc21ba514ec78112081be27084f30d3453d277ee3fda3db4636fa
BLAKE2b-256 checksum
How to use checksums
b99bba9d8006594bc22bf91950927429d0e2fc1aca98fe9530d0ab9a2f303084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / midas_comdata-2.1.0-py3-none-any.whl

Download URL midas_comdata-2.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c444e9fdb154fe8e9e0a4d9e7eaaffb11b9cceee222025d7a71f9a4616da0e6
BLAKE2b-256 checksum
How to use checksums
53f5474e7158150474272214c0f1c69b2a92fd98c259b807effcc6093213475e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for midas-comdata 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page