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
a6f96f6a
Commit
a6f96f6a
authored
4 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Plain Diff
Merge branch '494-don-t-set-the-matplotlib-backend' into 'master'
Resolve "Don't set the matplotlib backend" Closes
#494
See merge request
!816
parents
514b1bd9
1dd2b7fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!816
Resolve "Don't set the matplotlib backend"
Pipeline
#141928
passed with warnings
4 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/utils.py
+0
-24
0 additions, 24 deletions
bilby/core/utils.py
with
0 additions
and
24 deletions
bilby/core/utils.py
+
0
−
24
View file @
a6f96f6a
...
@@ -6,7 +6,6 @@ import os
...
@@ -6,7 +6,6 @@ import os
import
shutil
import
shutil
from
math
import
fmod
from
math
import
fmod
import
argparse
import
argparse
import
traceback
import
inspect
import
inspect
import
functools
import
functools
import
types
import
types
...
@@ -16,7 +15,6 @@ from importlib import import_module
...
@@ -16,7 +15,6 @@ from importlib import import_module
import
json
import
json
import
warnings
import
warnings
from
distutils.version
import
StrictVersion
import
numpy
as
np
import
numpy
as
np
from
scipy.interpolate
import
interp2d
from
scipy.interpolate
import
interp2d
from
scipy.special
import
logsumexp
from
scipy.special
import
logsumexp
...
@@ -972,28 +970,6 @@ command_line_args, command_line_parser = set_up_command_line_arguments()
...
@@ -972,28 +970,6 @@ command_line_args, command_line_parser = set_up_command_line_arguments()
# Instantiate the default logging
# Instantiate the default logging
setup_logger
(
print_version
=
False
,
log_level
=
command_line_args
.
log_level
)
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
):
class
BilbyJsonEncoder
(
json
.
JSONEncoder
):
...
...
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