Skip to content

Commit

Permalink
fix relative path for config GMF
Browse files Browse the repository at this point in the history
  • Loading branch information
agrouaze committed Sep 13, 2023
1 parent bbf3e75 commit 12a802a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions grdwindinversion/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from grdwindinversion.inversion import makeL2
from grdwindinversion.utils import get_memory_usage
import grdwindinversion
import time
import logging

Expand Down Expand Up @@ -36,13 +37,13 @@ def processor_starting_point():
# raise Exception('this processor only handle acquisitions with VV or VV+VH polarization for now.')
if args.config_file is None:
if 'S1' in input_file:
config_file = 'config_S1.yaml'
config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_S1.yaml')
elif 'RCM' in input_file:
config_file = 'config_RCM.yaml'
config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_RCM.yaml')
elif 'RS2' in input_file:
config_file = 'config_RS2.yaml'
config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_RS2.yaml')
elif 'hy2b' in input_file:
config_file = 'config_hy2b.yaml'
config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_hy2b.yaml')
else:
raise Exception('config data file cannot be defined using the input filename')
else:
Expand Down

0 comments on commit 12a802a

Please sign in to comment.