Replaced Geneva temperature variable name

This commit is contained in:
Luis Aleixo 2021-10-27 14:46:59 +02:00
parent 55d2d6fb34
commit 95a54de9ba
2 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@ MONTH_NAMES = [
coordinates = (46.204391, 6.143158)
wx_station_id = nearest_wx_station(longitude=coordinates[1], latitude=coordinates[0])[0]
# average temperature of each month, hour per hour (from midnight to 11 pm)
Geneva_hourly_temperatures_celsius_per_hour = {month.replace(month, MONTH_NAMES[i][:3]):
local_hourly_temperatures_celsius_per_hour = {month.replace(month, MONTH_NAMES[i][:3]):
[t - 273.15 for t in temp] for i, (month, temp)
in enumerate(wx_data()[wx_station_id].items())}
@ -23,12 +23,12 @@ GenevaTemperatures_hourly = {
tuple(float(time) for time in range(25)),
tuple(273.15 + np.array(temperatures)),
)
for month, temperatures in Geneva_hourly_temperatures_celsius_per_hour.items()
for month, temperatures in local_hourly_temperatures_celsius_per_hour.items()
}
# Same temperatures on a finer temperature mesh (every 6 minutes).
GenevaTemperatures = {
month: GenevaTemperatures_hourly[month].refine(refine_factor=10)
for month, temperatures in Geneva_hourly_temperatures_celsius_per_hour.items()
for month, temperatures in local_hourly_temperatures_celsius_per_hour.items()
}

View file

@ -291,7 +291,7 @@ def build_hourly_dependent_model_multipleventilation(month, intervals_open=((7.5
@pytest.mark.parametrize(
"month, temperatures",
data.Geneva_hourly_temperatures_celsius_per_hour.items(),
data.local_hourly_temperatures_celsius_per_hour.items(),
)
@pytest.mark.parametrize(
"time",
@ -306,7 +306,7 @@ def test_concentrations_hourly_dep_temp_vs_constant(month, temperatures, time):
@pytest.mark.parametrize(
"month, temperatures",
data.Geneva_hourly_temperatures_celsius_per_hour.items(),
data.local_hourly_temperatures_celsius_per_hour.items(),
)
@pytest.mark.parametrize(
"time",
@ -330,7 +330,7 @@ def test_concentrations_hourly_dep_multipleventilation():
@pytest.mark.parametrize(
"month_temp_item",
data.Geneva_hourly_temperatures_celsius_per_hour.items(),
data.local_hourly_temperatures_celsius_per_hour.items(),
)
@pytest.mark.parametrize(
"time",