Skip to content

Commit

Permalink
Refs #114. added another test script
Browse files Browse the repository at this point in the history
  • Loading branch information
yxqd committed Sep 11, 2018
1 parent 7c0f07f commit 76ce4fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
11 changes: 4 additions & 7 deletions tests/autorecon/Test0.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
"""Test basic functionality:
* skip reconstruction when CT is not done
* strart reconstruction when working on last CT file
"""

import os, glob
from imars3d.CT_from_TIFF_metadata import autoreduce

ct_file_path = "/HFIR/CG1D/IPTS-21115/raw/ct_scans/July26_2018/20180727_Huggies_bottom_0015_359_445_2319.tiff"
autoreduce(ct_file_path, local_disk_partition='/tmp', parallel_nodes=20)


dir = "/HFIR/CG1D/IPTS-21115/raw/ct_scans/July26_2018/"
files = glob.glob(os.path.join(dir, '*.tiff'))

for f in files:
for f in files[:5]:
autoreduce(f, local_disk_partition='/tmp', parallel_nodes=20)

# ct_file_path = "/HFIR/CG1D/IPTS-21115/raw/ct_scans/July26_2018/20180727_Huggies_bottom_0015_359_910_2322.tiff"
# autoreduce(ct_file_path, local_disk_partition='/tmp', parallel_nodes=20)

ct_file_path = "/HFIR/CG1D/IPTS-21115/raw/ct_scans/July26_2018/20180727_Huggies_bottom_0015_359_445_2319.tiff"
autoreduce(ct_file_path, local_disk_partition='/tmp', parallel_nodes=20)
12 changes: 12 additions & 0 deletions tests/autorecon/Test_OB.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python
import os, glob
from imars3d.CT_from_TIFF_metadata import autoreduce


ct_file_path = "/HFIR/CG1D/IPTS-20343/raw/ct_scans/20180905/20180906_CT_0042_183_000_1108.tiff"
autoreduce(
ct_file_path,
local_disk_partition='/SNSlocal2',
# clean_intermediate_files='archive',
outdir='/HFIR/CG1D/IPTS-20343/shared/autoreduce/test',
parallel_nodes=20)
2 changes: 2 additions & 0 deletions tests/autorecon/Test_center.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# This test can only be ran after "Test_flower.py" was run

import os, glob, numpy as np
from imars3d import tilt

Expand Down
4 changes: 2 additions & 2 deletions tests/autorecon/Test_diapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
autoreduce(
ct_file_path,
local_disk_partition='/SNSlocal2',
clean_intermediate_files='archive',
outdir='/HFIR/CG1D/IPTS-21115/shared/autoreduce/CT-group-2495.test',
# clean_intermediate_files='archive',
outdir='/HFIR/CG1D/IPTS-21115/shared/autoreduce/CT-group-2495.test2',
parallel_nodes=20)
2 changes: 2 additions & 0 deletions tests/autorecon/Test_tilt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# This test can only be ran after "Test_flower.py" was run

import os, glob, numpy as np
from imars3d import tilt

Expand Down

0 comments on commit 76ce4fb

Please sign in to comment.