Skip to content

Commit

Permalink
FIX: adjust doc parse fcts in ci to new black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Aug 29, 2024
1 parent 20caef0 commit 57ddb54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ci/parse_pyrad_name_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FUNCTIONS_TO_PARSE = ['get_fieldname_pyart',
'get_datatype_odim',
'get_datatype_metranet',
'get_fieldname_cosmo']
'get_fieldname_icon']

mainpath = Path(__file__).resolve().parent.parent
OUT_DIRECTORY = str(Path(mainpath, 'doc', 'source', 'overview', 'mappings'))
Expand All @@ -24,7 +24,7 @@
for line in srccode:
if ('datatype' in line or 'field_name' in line) and '==' in line:
pyrad_dtypes.append(line.split('==')[1].split(':')[
0].strip().replace("'", ""))
0].strip().replace('"', '').replace("'",""))
if 'return' in line:
returnline = line.replace('return', '').strip()

Expand Down
2 changes: 1 addition & 1 deletion ci/parse_pyrad_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def process_file(filepath):
if reading_params and product:
all_products[function][product]['parameters'] += " " + \
" ".join(line.replace('\n', ' ').split())
if "prdcfg['type']" in line and '==' in line:
if ('prdcfg["type"]' in line or "prdcfg['type']" in line) and '==' in line:
for product in all_products[function].keys():
if product in line:
all_products[function][product]['link'] = (funcpath_to_docpath(filepath) +
Expand Down

0 comments on commit 57ddb54

Please sign in to comment.