Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Track Analyzer
track-analyzer
Commits
807f1227
Commit
807f1227
authored
Nov 26, 2021
by
amichaut
Browse files
bug fix: dont load default maps to plot from default config
parent
4d7b499f
Changes
1
Hide whitespace changes
Inline
Side-by-side
track_analyzer/prepare.py
View file @
807f1227
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment