From 3de4be5230c6c8d9c052d734c804c3f751115387 Mon Sep 17 00:00:00 2001 From: immortalmin Date: Sat, 18 May 2024 10:21:31 +0800 Subject: [PATCH] solved the issue542 Wrong path for head.mat --- Python/MANIFEST.in | 1 + Python/tigre/utilities/sample_loader.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Python/MANIFEST.in b/Python/MANIFEST.in index e6b7f9a7..c54f1bbb 100644 --- a/Python/MANIFEST.in +++ b/Python/MANIFEST.in @@ -1,3 +1,4 @@ include *.txt recursive-include tigre/demos *.ipynb recursive-include tigre/demos *.mat +recursive-include tigre/data *.mat diff --git a/Python/tigre/utilities/sample_loader.py b/Python/tigre/utilities/sample_loader.py index 4d6690ca..7f3d3b04 100644 --- a/Python/tigre/utilities/sample_loader.py +++ b/Python/tigre/utilities/sample_loader.py @@ -11,7 +11,8 @@ def load_head_phantom(number_of_voxels=None): list_relative_path = [ "../../../Common/data/head.mat", # Local "../../data/head.mat", # setup.py - "../../../../data/head.mat" # pip + "../../../../data/head.mat", # pip + "../data/head.mat" ] found = False for relative_path in list_relative_path: