architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
197 stars 66 forks source link

Remove global variables file and split it into multiple settings files #753

Closed BhargavaKrishnaSreepathi closed 5 years ago

BhargavaKrishnaSreepathi commented 7 years ago

Global variables file is to be phased out. Transfer all the variables to the corresponding settings files in the respective folders

BhargavaKrishnaSreepathi commented 7 years ago

@daren-thomas: To resolve this issue, we can still save the relevant values from the globalvar.py into settings.py file which is local to sub folder like say optimization right? So remove the variables corresponding to optimization from globalvar.py and paste them into optimization_settings.py inside cea\optimization folder. Does this sound ok?

daren-thomas commented 7 years ago

you can. but what you really want to do is move them to the configuration file. see some of the pull requests i've posted that work in this direction. moving the variables to an optimization_settings.py file could be a valid first step, though. like a stepping stone...

jimenofonseca commented 6 years ago

@daren-thomas do you think we can close this issue now?

jimenofonseca commented 6 years ago

@daren-thomas ??

daren-thomas commented 6 years ago

@JIMENOFONSECA no. I don't think so. The issue is still open!

PR #1675 addresses a lot of the low hanging fruit, but there are still some parts of the optimization code and the neural network code that rely on this module.

jimenofonseca commented 5 years ago

@daren-thomas @BhargavaKrishnaSreepathi do you think we can close this issue now? if not, which is the plan of action?

daren-thomas commented 5 years ago

@JIMENOFONSECA It is still being used extensively in the metamodel/nn_generator scripts - what is the status of those? do they work? should they be moved to legacy if they don't?

Other places to fix:

gabriel-happle commented 5 years ago

@daren-thomas I will take a look at the first point and fix it.

daren-thomas commented 5 years ago

So there are still some places we need to look at:

daren-thomas commented 5 years ago

we can delete the cea/demand/subset_calibrator/ folder

jimenofonseca commented 5 years ago

@daren-thomas we take over this, so you can focus on the plots and the dashboard

jimenofonseca commented 5 years ago

2120 took down gv from the optimization_main.py and mcda.py scripts. the subset calibration should be taken out

daren-thomas commented 5 years ago

Daren is going to review it, @JIMENOFONSECA and @shanshanhsieh think it's done.

daren-thomas commented 5 years ago

STATUS UPDATE: