Skip to content

Commit

Permalink
another place with pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Oct 13, 2023
1 parent f75c716 commit bf8dbb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openpiv/piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import matplotlib.pyplot as plt

from openpiv import pyprocess, tools
import pkg_resources as pkg
from importlib_resources import files

# import numpy as np

Expand Down Expand Up @@ -71,8 +71,8 @@ def piv_example():
"""
# if im1 is None and im2 is None:
im1 = pkg.resource_filename("openpiv", "data/test1/exp1_001_a.bmp")
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')

frame_a = tools.imread(im1)
frame_b = tools.imread(im2)
Expand Down

0 comments on commit bf8dbb5

Please sign in to comment.