Skip to content

Commit af3de72

Browse files
Update testing file to use test data repository
1 parent 7048e16 commit af3de72

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tests/interactive-imagej/bioformats/metadata/test_metadata.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ Copy the following code to a Fiji that has the release `python-imcflibs-1.5.0.ja
55
Add the source folder and the names of the files under the corresponding lines, and run the script. If the metadata is printed in Fiji output, the methods are working as intended
66

77
```
8+
# @ File (label="IMCF testdata location", style="directory") IMCF_TESTDATA
9+
810
import os
11+
from imcflibs.pathtools import join2
912
from imcflibs.imagej import bioformats
1013
from ij import IJ
1114
1215
# Testing for the metadata retrieval through Bioformats
1316
1417
# Add directory path here that contains the files you wish to test for
15-
path = r"U:\\VAMP\\rohang0000\\stage_test"
16-
file_path_1 = os.path.join(path, "DON_25922_20250201_25922_2_01.vsi")
17-
file_path_2 = os.path.join(path, "DON_25922_20250201_25922_2_02.vsi")
18-
file_path_3 = os.path.join(path, "DON_25922_20250201_25922_2_03.vsi")
18+
19+
file_path_1 = join2(IMCF_TESTDATA, "bioformats/DON_25922_20250201_25922_2_01.vsi")
20+
file_path_2 = join2(IMCF_TESTDATA, "bioformats/DON_25922_20250201_25922_2_02.vsi")
21+
file_path_3 = join2(IMCF_TESTDATA, "bioformats/DON_25922_20250201_25922_2_03.vsi")
1922
2023
metadata = bioformats.get_metadata_from_file(file_path_1)
2124
print(metadata.unit_width)

0 commit comments

Comments
 (0)