ugr-sail / sinergym

Gym environment for building simulation and control using reinforcement learning
https://ugr-sail.github.io/sinergym/
MIT License
124 stars 34 forks source link

create customized environment #341

Closed SHITIANYU-hue closed 1 year ago

SHITIANYU-hue commented 1 year ago

i was trying to create a customized building environment, i have added my file configuration but it still says cannot find the environment

image

image

AlejandroCN7 commented 1 year ago

Hi @SHITIANYU-hue, How did you install Sinergym? With pip install sinergym? With our container? We have created a bug template to be able to help users more efficiently. Please, do not skip these templates and use them for better communication. Please, fill the next information:

System Info

Describe the characteristic of your environment:

I suspect the problem is that you installed Sinergym using the PyPi repo. Therefore, your local changes do not affect your Sinergym package. And you should use pip install -e .[extras] in the root path of your cloned repository (if you are using our container, you shouldn't have this problem).

SHITIANYU-hue commented 1 year ago

I used the docker's default installation, i used my vs code connects to the docker image( https://code.visualstudio.com/docs/devcontainers/containers). Also, I tried to reinstall Sinergym again in my docker, thanks for your reply, I will try to see if there is any step that I missed.

AlejandroCN7 commented 1 year ago

@SHITIANYU-hue see this.

SHITIANYU-hue commented 1 year ago

Hello, thanks!

I tried to run it in my docker container and it works. However, when i import my environment, i.e., env=gym.make('Eplus-taicang'), it has this error, may i know if there is anything wrong with my taicang.idf file?

image
AlejandroCN7 commented 1 year ago

@SHITIANYU-hue There must be some problem with the IDF structure you are trying to use. EPM is the opyplus library object with which we store the building design internally in Python. Have you made sure that the IDF version is the same as the Energyplus version you are using (v9.5.0)?