Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
65eb7f5d
Commit
65eb7f5d
authored
4 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
Remove setting of matplotlib backend
parent
aee04c79
No related branches found
No related tags found
1 merge request
!816
Resolve "Don't set the matplotlib backend"
Pipeline
#135391
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/utils.py
+0
-23
0 additions, 23 deletions
bilby/core/utils.py
with
0 additions
and
23 deletions
bilby/core/utils.py
+
0
−
23
View file @
65eb7f5d
...
...
@@ -971,29 +971,6 @@ command_line_args, command_line_parser = set_up_command_line_arguments()
# Instantiate the default logging
setup_logger
(
print_version
=
False
,
log_level
=
command_line_args
.
log_level
)
if
'
DISPLAY
'
in
os
.
environ
:
logger
.
debug
(
"
DISPLAY={} environment found
"
.
format
(
os
.
environ
[
'
DISPLAY
'
]))
pass
else
:
logger
.
debug
(
'
No $DISPLAY environment variable found, so importing
\
matplotlib.pyplot with non-interactive
"
Agg
"
backend.
'
)
import
matplotlib
import
matplotlib.pyplot
as
plt
non_gui_backends
=
matplotlib
.
rcsetup
.
non_interactive_bk
for
backend
in
non_gui_backends
:
try
:
logger
.
debug
(
"
Trying backend {}
"
.
format
(
backend
))
if
StrictVersion
(
matplotlib
.
__version__
)
>=
StrictVersion
(
"
3.1
"
):
matplotlib
.
use
(
backend
)
else
:
matplotlib
.
use
(
backend
,
warn
=
False
)
plt
.
switch_backend
(
backend
)
break
except
Exception
:
print
(
traceback
.
format_exc
())
class
BilbyJsonEncoder
(
json
.
JSONEncoder
):
def
default
(
self
,
obj
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment