You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Method 2: VS-Code Debug and Run via Dev Container
109
+
####Method 2: VS-Code Debug and Run via Dev Container
110
110
111
111
In VS-Code, you can run a Docker Dev Container to set up a virtual environment. The Dev Container's Container will be almost identical to the one build for EMHASS (Docker/Add-on). There you can edit and test EMHASS.
docker run -it -p 5000:5000 --name emhass-test -e EMHASS_KEY -e EMHASS_URL -e TIME_ZONE -e LAT -e LON -e ALT emhass/test
234
234
```
235
235
236
-
### Example Docker testing pipeline
236
+
####Example Docker testing pipeline
237
237
The following pipeline will run unittest and most of the EMHASS actions. This may be a good option for those who wish to test their changes against the production EMHASS environment.
User may wish to re-test with tweaked parameters such as `lp_solver`, `weather_forecast_method` and `load_forecast_method`, in `config.json` to broaden the testing scope.
285
285
*See [Differences](https://emhass.readthedocs.io/en/latest/differences.html) for more information on how the different methods of running EMHASS differ.*
286
286
287
-
### Adding a parameter
287
+
####Adding a parameter
288
288
When enhancing EMHASS, users may like to add or modify the EMHASS parameters. To add a new parameter see the following steps:
289
289
290
290
*Example parameter = `this_parameter_is_amazing`*
@@ -340,7 +340,7 @@ If you are only adding another option for a existing parameter, editing param_de
340
340
},
341
341
```
342
342
343
-
## Step 3 - Pull request
343
+
###Step 3 - Pull request
344
344
345
345
Once developed, commit your code, and push the commit to your fork on Github.
346
346
Once ready, submit a pull request with your fork to the [davidusb-geek/emhass@master](https://github.com/davidusb-geek/emhass) repository.
0 commit comments