Skip to content

Commit

Permalink
Merge branch 'main' into line_by_line_monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianp14 committed Jun 21, 2024
2 parents 48c8d87 + 3497395 commit 92863fc
Show file tree
Hide file tree
Showing 15 changed files with 829 additions and 1,037 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ environment = vs.Environment(sim_start="15-06-2022")
monitor = vs.Monitor()
environment.add_microgrid(
actors=[
vs.ComputingSystem(power_meters=[vs.MockPowerMeter(p=400)]),
vs.Generator(signal=vs.HistoricalSignal.from_dataset("solcast2022_global"), column="Berlin"),
vs.ComputingSystem(nodes=[vs.MockSignal(p=400)]),
vs.Actor(signal=vs.HistoricalSignal.load("solcast2022_global", column="Berlin")),
],
controllers=[monitor],
storage=vs.SimpleBattery(capacity=100),
Expand Down
301 changes: 152 additions & 149 deletions examples/basic_example.ipynb

Large diffs are not rendered by default.

371 changes: 186 additions & 185 deletions examples/controller_example.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/signal_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}
],
"source": [
"signal.at(\"2020-01-01T00:00:00\", column=\"solar\")"
"signal.now(at=\"2020-01-01T00:00:00\", column=\"solar\")"
]
},
{
Expand Down Expand Up @@ -156,8 +156,8 @@
}
],
"source": [
"dataset_signal = vs.HistoricalSignal.from_dataset(\"solcast2022_global\", params={\"scale\": 2.0, \"start_time\":\"2020-06-12T00:00:00\"})\n",
"dataset_signal.at(\"2020-06-27T13:46:53\", column=\"Berlin\")"
"dataset_signal = vs.HistoricalSignal.load(\"solcast2022_global\", params={\"scale\": 2.0, \"start_time\":\"2020-06-12T00:00:00\"})\n",
"dataset_signal.now(at=\"2020-06-27T13:46:53\", column=\"Berlin\")"
]
},
{
Expand All @@ -184,7 +184,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.8.19"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 92863fc

Please sign in to comment.