Skip to content

Commit

Permalink
fix syntool converter options initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Oct 16, 2024
1 parent a09115c commit 825c344
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions geospaas_processing/converters/syntool/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class BasicSyntoolConverter(SyntoolConverter):

def __init__(self, **kwargs):
self.converter_type = kwargs.pop('converter_type')
self.converter_options = kwargs.pop('converter_options', None)
self.converter_options = kwargs.pop('converter_options', {})
# Should be a string or list of ParameterSelectors
self.ingest_parameter_files = kwargs.pop('ingest_parameter_files')
super().__init__(**kwargs)
Expand Down Expand Up @@ -220,8 +220,7 @@ def parse_converter_options(self, kwargs):
"""
converter_options = self.converter_options.copy()
converter_options_list = []
if self.converter_options:
converter_options.update(kwargs.pop('converter_options', {}))
converter_options.update(kwargs.pop('converter_options', {}))
if converter_options:
converter_options_list.append('-opt')
for key, value in converter_options.items():
Expand Down

0 comments on commit 825c344

Please sign in to comment.