From 6e4ac63941efe832a3e8ce33ea6d8bc0ac922319 Mon Sep 17 00:00:00 2001
From: sharoncy <s.c.yates@medisin.uio.no>
Date: Wed, 10 May 2023 10:56:06 +0200
Subject: [PATCH] Create structure for testing

---
 ...older_of_segmentations_to_meshview_multithreaded.py |  2 +-
 test/test1.json                                        | 10 ++++++++++
 test/test2.json                                        | 10 ++++++++++
 test/test3.json                                        | 10 ++++++++++
 4 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 test/test1.json
 create mode 100644 test/test2.json
 create mode 100644 test/test3.json

diff --git a/PyNutil/folder_of_segmentations_to_meshview_multithreaded.py b/PyNutil/folder_of_segmentations_to_meshview_multithreaded.py
index 1103e73..83f31c0 100644
--- a/PyNutil/folder_of_segmentations_to_meshview_multithreaded.py
+++ b/PyNutil/folder_of_segmentations_to_meshview_multithreaded.py
@@ -10,7 +10,7 @@ import json
 from datetime import datetime
 
 #import json, use to define input parameters
-with open('../input/input.json', 'r') as f:
+with open('../test/test1.json', 'r') as f:
   input = json.load(f)
 #print(input)
 
diff --git a/test/test1.json b/test/test1.json
new file mode 100644
index 0000000..2e88cc3
--- /dev/null
+++ b/test/test1.json
@@ -0,0 +1,10 @@
+{   "volume_path": "../annotation_volumes/annotation_10_reoriented.nrrd",
+    "label_path": "../annotation_volumes/allen2022_colours.csv",
+    "allen_colours": "../annotation_volumes/allen2022_colours.csv",
+    "segmentation_folder": "../test_data/tTA_2877_NOP",
+    "alignment_json": "../test_data/tTA_2877_NOP_horizontal_final_2017.json",
+    "nonlinear": true,
+    "colour": [0, 0, 255], 
+    "points_json_path": "../outputs/test1.json",
+    "counts_per_label_name": "../outputs/test1_counts_per_allenID.csv"
+}
\ No newline at end of file
diff --git a/test/test2.json b/test/test2.json
new file mode 100644
index 0000000..0f2f534
--- /dev/null
+++ b/test/test2.json
@@ -0,0 +1,10 @@
+{   "volume_path": "../annotation_volumes/annotation_10_reoriented.nrrd",
+    "label_path": "../annotation_volumes/allen2022_colours.csv",
+    "allen_colours": "../annotation_volumes/allen2022_colours.csv",
+    "segmentation_folder": "../test_data/oneSection15",
+    "alignment_json": "../test_data/C68_nonlinear_no_markers.json",
+    "nonlinear": true,
+    "colour": [255, 0, 255],
+    "points_json_path": "../outputs/test2_points.json",
+    "counts_per_label_name": "../outputs/test2_counts_per_allenID.csv"
+}
\ No newline at end of file
diff --git a/test/test3.json b/test/test3.json
new file mode 100644
index 0000000..28af9a7
--- /dev/null
+++ b/test/test3.json
@@ -0,0 +1,10 @@
+{   "volume_path": "../annotation_volumes/annotation_10_reoriented.nrrd",
+    "label_path": "../annotation_volumes/allen2022_colours.csv",
+    "allen_colours": "../annotation_volumes/allen2022_colours.csv",
+    "segmentation_folder": "../test_data/oneSection15",
+    "alignment_json": "../test_data/C68_nonlinear.json",
+    "nonlinear": true,
+    "colour": [255, 0, 255],
+    "points_json_path": "../outputs/test3_points.json",
+    "counts_per_label_name": "../outputs/test3_counts_per_allenID.csv"
+}
\ No newline at end of file
-- 
GitLab