Skip to content
Snippets Groups Projects
Commit 7af67039 authored by Felipe Delestro Matos's avatar Felipe Delestro Matos
Browse files

before changing namespace

parent 86c5619b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ import tifffile ...@@ -8,7 +8,7 @@ import tifffile
import outputformat as ouf import outputformat as ouf
import datetime import datetime
import matplotlib import matplotlib
matplotlib.use("Agg") # matplotlib.use("Agg")
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
......
...@@ -12,7 +12,7 @@ import plotly.graph_objects as go ...@@ -12,7 +12,7 @@ import plotly.graph_objects as go
import localthickness as lt import localthickness as lt
import matplotlib import matplotlib
matplotlib.use("Agg") # matplotlib.use("Agg")
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
......
...@@ -51,12 +51,6 @@ class DataLoader: ...@@ -51,12 +51,6 @@ class DataLoader:
Returns: Returns:
numpy.ndarray: The loaded volume as a NumPy array. numpy.ndarray: The loaded volume as a NumPy array.
Raises:
FileNotFoundError: If the file does not exist.
Example:
loader = DataLoader()
data = loader.load_tiff("image.tif")
""" """
if self.virtual_stack: if self.virtual_stack:
log.info("Using virtual stack") log.info("Using virtual stack")
...@@ -78,12 +72,6 @@ class DataLoader: ...@@ -78,12 +72,6 @@ class DataLoader:
Returns: Returns:
numpy.ndarray: The loaded volume as a NumPy array. numpy.ndarray: The loaded volume as a NumPy array.
Raises:
FileNotFoundError: If the file does not exist.
Example:
loader = DataLoader()
data = loader.load_h5("data.h5")
""" """
with h5py.File(path, "r") as f: with h5py.File(path, "r") as f:
vol = f["data"][:] vol = f["data"][:]
......
...@@ -7,7 +7,6 @@ import matplotlib.pyplot as plt ...@@ -7,7 +7,6 @@ import matplotlib.pyplot as plt
import matplotlib import matplotlib
import numpy as np import numpy as np
matplotlib.use("Agg")
def mock_plot(): def mock_plot():
...@@ -23,6 +22,10 @@ def mock_plot(): ...@@ -23,6 +22,10 @@ def mock_plot():
>>> plt.show() >>> plt.show()
""" """
# TODO: Check if using Agg backend conflicts with other pipelines
matplotlib.use("Agg")
fig = plt.figure(figsize=(5, 4)) fig = plt.figure(figsize=(5, 4))
axes = fig.add_axes([0.1, 0.1, 0.8, 0.8]) axes = fig.add_axes([0.1, 0.1, 0.8, 0.8])
values = np.arange(0, 2 * np.pi, 0.01) values = np.arange(0, 2 * np.pi, 0.01)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment