| Conditions | 3 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 13 | def download_input_data(): |
||
| 14 | url_temperature = ( |
||
| 15 | "https://oemof.org/wp-content/uploads/2025/12/temperature.csv" |
||
| 16 | ) |
||
| 17 | url_energy = "https://oemof.org/wp-content/uploads/2025/12/energy.csv" |
||
| 18 | |||
| 19 | print( |
||
| 20 | "Data is licensed from M. Schlemminger, T. Ohrdes, E. Schneider," |
||
| 21 | " and M. Knoop. Under Creative Commons Attribution 4.0 International" |
||
| 22 | " License It is also available at doi: 10.5281/zenodo.5642902." |
||
| 23 | ) |
||
| 24 | |||
| 25 | file_path = Path(__file__).parent |
||
| 26 | |||
| 27 | temperature_file = Path(file_path, "temperature.csv") |
||
| 28 | if not temperature_file.exists(): |
||
| 29 | urlretrieve(url_temperature, temperature_file) |
||
| 30 | |||
| 31 | energy_file = Path(file_path, "energy.csv") |
||
| 32 | if not energy_file.exists(): |
||
| 33 | urlretrieve(url_energy, energy_file) |
||
| 34 | |||
| 38 |