Weather Interactions

delphin_6_automation.database_interactions.weather_interactions.assign_indoor_climate_to_project(delphin_id: str, climate_class: str) → str[source]

Assign indoor climate class to a Delphin entry

Parameters:
  • delphin_id – Database ID
  • climate_class – Climate class can be either a or b
Returns:

Database ID

delphin_6_automation.database_interactions.weather_interactions.assign_weather_by_name_and_years(delphin_id: str, weather_station_name: str, years: list) → str[source]

Assigns weather and years to a Delphin project in the database

delphin_6_automation.database_interactions.weather_interactions.assign_weather_to_project(delphin_id: str, weather_documents: list) → str[source]

Assign weather to a Delphin entry

Parameters:
  • delphin_id – Delphin document database.rst ID
  • weather_documents – List with weather entries
Returns:

Database ID

delphin_6_automation.database_interactions.weather_interactions.change_weather_file_location(delphin_document: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin)[source]

Change the file location for the weather files in a Delphin project

delphin_6_automation.database_interactions.weather_interactions.concatenate_weather(delphin_document: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin) → dict[source]

Concatenate weather documents together from a Delphin project in the database

delphin_6_automation.database_interactions.weather_interactions.download_weather(delphin_document: delphin_6_automation.database_interactions.db_templates.delphin_entry.Delphin, folder: str) → bool[source]

Download the weather associated with a Delphin project in the database

delphin_6_automation.database_interactions.weather_interactions.list_project_weather(sim_id: str) → list[source]

Returns a list with the weather in a project entry.

Parameters:sim_id – Delphin entry ID
Returns:List with material file names
delphin_6_automation.database_interactions.weather_interactions.upload_weather_to_db(file_path: str) → list[source]

Upload a WAC weather file to the database