Skip to content

Commit

Permalink
Merge pull request earthobservations#64 from panodata/fix-cli-typos
Browse files Browse the repository at this point in the history
Fix parameter typo within the "cli" feature
  • Loading branch information
gutzbenj committed Jun 16, 2020
2 parents d6a8ab5 + 0333ab4 commit 408a039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python_dwd/cli.py
Expand Up @@ -92,7 +92,7 @@ def run():
parameter=options.parameter,
time_resolution=options.resolution,
period_type=read_list(options.period),
humanized_column_names=True,
humanize_column_names=True,
)
data = request.collect_data(
write_file=options.persist,
Expand Down
6 changes: 3 additions & 3 deletions python_dwd/dwd_station_request.py
Expand Up @@ -31,7 +31,7 @@ def __init__(self,
period_type: Union[None, str, list, PeriodType] = None,
start_date: Union[None, str, Timestamp] = None,
end_date: Union[None, str, Timestamp] = None,
humanized_column_names: bool = False) -> None:
humanize_column_names: bool = False) -> None:

if not (period_type or (start_date and end_date)):
raise ValueError("Define either a 'time_resolution' or both the 'start_date' and 'end_date' and "
Expand Down Expand Up @@ -94,7 +94,7 @@ def __init__(self,
raise ValueError("No combination for parameter, time_resolution "
"and period_type could be found.")

self.humanized_column_names = humanized_column_names
self.humanize_column_names = humanize_column_names

def __eq__(self, other):
return [self.station_ids,
Expand Down Expand Up @@ -148,7 +148,7 @@ def collect_data(self,
parallel_download=parallel_download,
write_file=write_file,
create_new_filelist=create_new_filelist,
humanize_column_names=self.humanized_column_names
humanize_column_names=self.humanize_column_names
)

# Filter out values which already are in the dataframe
Expand Down

0 comments on commit 408a039

Please sign in to comment.