Skip to content
GitLab
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
6414429a
Commit
6414429a
authored
Dec 15, 2021
by
amichaut
Browse files
changed matplotlib backend to make it run on cluster
parent
b0437988
Changes
2
Hide whitespace changes
Inline
Side-by-side
track_analyzer/scripts/analyze_maps.py
View file @
6414429a
...
...
@@ -67,7 +67,7 @@ def map_analysis(data_dir, data=None, image=None, refresh=False, parallelize=Fal
if
k
not
in
plot_config
.
keys
():
plot_config
[
k
]
=
plot_config_default
[
k
]
if
plot_config
[
'save_as_stack'
]:
mpl
.
use
(
'
TkA
gg'
)
# need to switch backend to use matplotlib tostring_rgb()
mpl
.
use
(
'
a
gg'
)
# need to switch backend to use matplotlib tostring_rgb()
# Get map_config
map_config_default
=
tpr
.
make_map_config
(
data_dir
=
data_dir
,
export_config
=
False
)
...
...
track_analyzer/scripts/analyze_tracks.py
View file @
6414429a
...
...
@@ -67,7 +67,7 @@ def traj_analysis(data_dir, data=None, image=None, refresh=False, parallelize=Fa
if
k
not
in
plot_config
.
keys
():
plot_config
[
k
]
=
plot_config_default
[
k
]
if
plot_config
[
'save_as_stack'
]:
mpl
.
use
(
'
TkA
gg'
)
# need to switch backend to use matplotlib tostring_rgb()
mpl
.
use
(
'
a
gg'
)
# need to switch backend to use matplotlib tostring_rgb()
# Get traj_config
traj_config_default
=
tpr
.
make_traj_config
(
data_dir
=
data_dir
,
export_config
=
False
)
...
...
@@ -101,8 +101,6 @@ def traj_analysis(data_dir, data=None, image=None, refresh=False, parallelize=Fa
filters
[
'filters_list'
][
i
]
=
filter_
subset_analysis
=
filters
[
'subset'
]
# how to deal with subsets
print
(
subset_analysis
)
print
(
filters
)
filters_
=
filters
[
'filters_list'
]
df
=
tpr
.
select_sub_data
(
df
,
filters
=
filters_
)
if
subset_analysis
==
'together'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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