Skip to content

Commit

Permalink
changing how images are loaded to reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
max-anu committed Dec 18, 2024
1 parent c1c9e21 commit 77f1d24
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/accessvis/widgets/image_widget.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import numpy as np
import imageio

import matplotlib.pyplot as plt
from .widget_base import Widget


Expand All @@ -10,6 +8,4 @@ def __init__(self, lv, file_path: str, **kwargs):
self.file_path = file_path

def _make_pixels(self, *args, **kwargs):
img = imageio.imread(self.file_path)
array = np.asarray(img)
return array
return plt.imread(self.file_path)

0 comments on commit 77f1d24

Please sign in to comment.