We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5ec591 + bf8dbb5 commit f23a541Copy full SHA for f23a541
openpiv/piv.py
@@ -2,7 +2,7 @@
2
import matplotlib.pyplot as plt
3
4
from openpiv import pyprocess, tools
5
-import pkg_resources as pkg
+from importlib_resources import files
6
7
# import numpy as np
8
@@ -71,8 +71,8 @@ def piv_example():
71
72
"""
73
# if im1 is None and im2 is None:
74
- im1 = pkg.resource_filename("openpiv", "data/test1/exp1_001_a.bmp")
75
- im2 = pkg.resource_filename("openpiv", "data/test1/exp1_001_b.bmp")
+ im1 = files('openpiv.data').joinpath('test1/exp1_001_a.bmp')
+ im2 = files('openpiv.data').joinpath('test1/exp1_001_b.bmp')
76
77
frame_a = tools.imread(im1)
78
frame_b = tools.imread(im2)
0 commit comments