Skip to main content

A Midas module for the Smart Nord dataset.

Project description

Midas Smart Nord Data Simulator

This package contains a midas module providing a simulator for the Smart Nord data set. Although this package is intended to be used with midas, it can be used in any mosaik simulation scenario.

Version: 2.1

Installation

This package will usually installed automatically together with midas-mosaik if you opt-in for the base extra. It is available on pypi, so you can install it manually with

pip install midas-sndata

Usage

The complete documentation is available at https://midas-mosaik.gitlab.io/midas.

Inside of midas

To use the powergrid inside of midas, just add sndata to your modules

my_scenario:
  modules:
    - sndata
    - ...

and configure it with:

  sndata_params:
    my_grid_scope:
      step_size: 900  # <-- Default value
      grid_name: my_grid_scope
      active_mapping: 
        1: [[Land_0, 1.0], [Land_2, 1.5]]
        3: [[House_000, 1.0]]

The mapping has to match to the grid that you're using.

Any mosaik scenario

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

  sim_config = {
    "SmartNordData": {
      "python": "midas_smartnord.simulator:SmartNordDataSimulator"
    },
    # ...
  }

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

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

Then the models can be started:

  land1 = sndata_sim.CalculatedQTimeSeries(name="Land_0", scaling=1.0)
  land2 = sndata_sim.CalculatedQTimeSeries(name="Land_2", scaling=1.5)
  house1 = sndata_sim.CalculatedQTimeSeries(name="House_000", scaling=1.0)

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

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

License

This software is released under the GNU Lesser General Public License (LGPL). See the license file for more information about the details.

The data set is a result from the research project Smart Nord.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

midas_sndata-2.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

midas_sndata-2.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file midas_sndata-2.1.0.tar.gz.

File metadata

  • Download URL: midas_sndata-2.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for midas_sndata-2.1.0.tar.gz
Algorithm Hash digest
SHA256 04c02c655d70b0e9ae65ed822fd8a7a44916cc97a9958540a6f0dc5172631772
MD5 ab573270b85b2b2e4408225b66996b45
BLAKE2b-256 21fcdbf28c044bb48c8b281ce476ad2e25046d54e8fbf0f2b2bcd8db64ffe2ef

See more details on using hashes here.

File details

Details for the file midas_sndata-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: midas_sndata-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for midas_sndata-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aefbe52581a7036c0fc073825bd6f560f56128fecff2e18f7e30fa4e2b01a0a7
MD5 97f9efe57edaf6346a173963195a57e6
BLAKE2b-256 8ada84d7c87bae5df6f8dc782a52925c2374c889cd4e85a2b957998bea6f0f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page