Skip to content

Updated to use simulation time and gridappsd-python command#2

Open
Jeffrey-Simpson wants to merge 2 commits into
GRIDAPPSD:developfrom
Jeffrey-Simpson:update_gridappsd_python_335
Open

Updated to use simulation time and gridappsd-python command#2
Jeffrey-Simpson wants to merge 2 commits into
GRIDAPPSD:developfrom
Jeffrey-Simpson:update_gridappsd_python_335

Conversation

@Jeffrey-Simpson
Copy link
Copy Markdown

@Jeffrey-Simpson Jeffrey-Simpson commented Aug 5, 2021

Updated to use simulation time and gridappsd-python command

Note that the container has to be rebuilt from the base gridappsd container for this to work.

I test by doing this:

docker exec -it gridappsd-docker_pyvvo_1 bash

apt update
apt-get update && apt-get install -y procps
apt install -y git
pip install --upgrade git+git://github.com/GRIDAPPSD/gridappsd-python@releases/2021.02.0


python
from gridappsd import GridAPPSD, topics, simulation
from gridappsd.difference_builder import DifferenceBuilder as DiffBuilder
from gridappsd import utils as gad_utils
# gad_utils.get_gridappsd_user()
diff_builder = DiffBuilder(simulation_id=1234)
diff_builder.get_message(epoch=1)

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant