architecture-building-systems / CityEnergyAnalyst

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

Enable swtich of databases Singapore and zurich #833

Closed jimenofonseca closed 6 years ago

jimenofonseca commented 7 years ago

In essence we are finding great difficulty on easily running simulations considering the databases of Singapore, instead those of Zurich. Until now we have to change the input locator and global variables all the time. which is inefficient and a gigantic source of error.

This issue will require in essence to:

  1. add to the data helper interface in arcgis a new input field pointing to which database to use. two options for now: European or Asian.
  2. add to the dynamic demand main in arcigs with the exact same possibility.
  3. add to the configuration file the option of selecting one or the other databases and attach this to the input locator.
  4. Make possible that we make the change from pycharm easily without need to go to comand line or arcgis.

@daren-thomas this is kind of an urgent issue which is blocking #713 . could we talk on the phone anytime soon to fix details?

jimenofonseca commented 7 years ago

I created the database structure in the branch i833-switch-databases.I leave it there for you to use

These are the pointers of the input locator to account for. def get_archetypes_properties(self): def get_archetypes_schedules(self): def get_supply_systems_cost(self): def get_life_cycle_inventory_supply_systems(self): def get_life_cycle_inventory_building_systems(self): def get_data_benchmark(self): def get_supply_systems_database(self):

Nice continuation! thanks @daren-thomas let me know if there is any doubt.