Skip to content

Commit

Permalink
Make default argument safer
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido Pleßmann committed Mar 4, 2021
1 parent 93d6151 commit 427e9d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/egon/data/importing/mastr.py
Expand Up @@ -4,16 +4,19 @@
import egon.data.config


def download_mastr_data(data_stages=["cleaned"]):
def download_mastr_data(data_stages=None):
"""
Download MaStR data from Zenodo
Parameters
----------
data_stages: list
Select data stages you want to download data for. Possible values:
'raw', 'cleaned'
'raw', 'cleaned'. Defaults to 'cleaned' if omitted.
"""
# Process inputs
if not data_stages:
data_stages = ["cleaned"]

# Get parameters from config and set download URL
data_config = egon.data.config.datasets()["mastr"]
Expand Down

0 comments on commit 427e9d2

Please sign in to comment.