Commit 807f1227 authored by amichaut's avatar amichaut
Browse files

bug fix: dont load default maps to plot from default config

parent 4d7b499f
......@@ -1159,9 +1159,10 @@ def load_config(data_dir, verbose=False):
return out_dict
def make_map_config(data_dir=None, export_config=True):
def make_map_config(data_dir=None, export_config=True, empty_run=True):
"""
Generate a list of dictionaries containing the parameters used to run map_analysis.
empty_run allows not to use the default parameters to analyze and to skip the analysis
"""
# config to create grid using prepare.make_grid()
......@@ -1184,6 +1185,12 @@ def make_map_config(data_dir=None, export_config=True):
# config of scalar field to plot. Each key is a parameter to plot and it stores a dict containing the plotting config for this specific parameter
scalar_fields = {'vx': {'vlim': None, # value limits to display on the color map
'cmap': "plasma" # color map
},
'vy': {'vlim': None, # value limits to display on the color map
'cmap': "plasma" # color map
},
'v': {'vlim': None, # value limits to display on the color map
'cmap': "plasma" # color map
}
}
......@@ -1202,6 +1209,12 @@ def make_map_config(data_dir=None, export_config=True):
}
}
if empty_run:
# erase analysis config
scalar_fields = {}
vector_fields = {}
vector_mean = {}
# package all in a dict
config = {'grid_param': grid_param,
'map_param': map_param,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment