Skip to content

Commit

Permalink
Initial refactor (code simplification of l0.io.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Nov 8, 2023
1 parent 77de56e commit 54a496c
Show file tree
Hide file tree
Showing 19 changed files with 383 additions and 223 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ To create a new reader test, simply add a small, single-station dataset and the
| ├── 📁 check_readers
| ├── 📁 DISDRODB
| ├── 📁 Raw
| ├── 📁 `<data_source>` : e.g. GPM, ARM, EPFL, ...
| ├── 📁 `<campaign_name>` : e.g. PARSIVEL_2007
| ├── 📁 `<DATA_SOURCE>` : e.g. GPM, ARM, EPFL, ...
| ├── 📁 `<CAMPAIGN_NAME>` : e.g. PARSIVEL_2007
| ├── 📁 data
| ├── 📁 `<station_name>`.\*
| ├── 📁 issue
Expand Down
2 changes: 1 addition & 1 deletion disdrodb/api/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _get_campaigns_stations(base_dir, product, data_source, campaign_names):
def _get_data_source_stations(base_dir, product, data_source):
"""Return list of available stations for a specific data source.
Returns a tuple (<data_source>, <campaign_name>, <station_name>)
Returns a tuple (<DATA_SOURCE>, <CAMPAIGN_NAME>, <station_name>)
"""
# Get data source directory
data_source_dir = get_disdrodb_path(
Expand Down
4 changes: 2 additions & 2 deletions disdrodb/data_transfer/upload_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def click_station_arguments(function: object):
Function.
"""
function = click.argument("station_name", metavar="<station>")(function)
function = click.argument("campaign_name", metavar="<campaign_name>")(function)
function = click.argument("data_source", metavar="<data_source>")(function)
function = click.argument("campaign_name", metavar="<CAMPAIGN_NAME>")(function)
function = click.argument("data_source", metavar="<DATA_SOURCE>")(function)
return function


Expand Down
Loading

0 comments on commit 54a496c

Please sign in to comment.