Commit 6c61e74a authored by Alexandre Bône's avatar Alexandre Bône

Quick test.

parent 678942ee
Pipeline #56825617 passed with stages
in 4 minutes and 28 seconds
......@@ -25,7 +25,7 @@ context has already been set
2.398E-05 and 4.171E+02 [ momenta ]
------------------------------------- Iteration: 1 -------------------------------------
>> Log-likelihood = -1.113E+04 [ attachment = -2.304E+03 ; regularity = -8.821E+03 ]
>> Estimation took: 01 seconds
>> Estimation took: 00 seconds
[ compute individual geodesic regressions ]
......@@ -168,7 +168,7 @@ context has already been set
>> Log-likelihood = -1.715E+03 [ attachment = -1.442E+03 ; regularity = -2.729E+02 ]
>> Number of line search loops exceeded. Stopping.
>> Estimation took: 00:00:01
>> Estimation took: 00:00:00
[ longitudinal registration of subject sub-ADNI002S1268 ]
......@@ -260,4 +260,4 @@ context has already been set
7.143E-06 and 1.400E+03 [ modulation_matrix ]
------------------------------------- Iteration: 1 -------------------------------------
>> Log-likelihood = -7.472E+03 [ attachment = -7.472E+03 ; regularity = -7.857E-04 ]
>> Estimation took: 03 seconds
>> Estimation took: 02 seconds
......@@ -11,19 +11,19 @@ class LongitudinalAtlasHippocampi(FunctionalTest):
Methods with names starting by "test" will be run.
"""
def test_configuration_1(self):
self.run_configuration(os.path.abspath(__file__), 'output__1', 'output_saved__1',
'model__1.xml', 'data_set.xml', 'optimization_parameters__1.xml')
def test_configuration_2(self):
self.run_configuration(os.path.abspath(__file__), 'output__2', 'output_saved__2',
'model__2.xml', 'data_set.xml', 'optimization_parameters__2.xml')
def test_configuration_3(self):
self.run_configuration(os.path.abspath(__file__), 'output__3', 'output_saved__3',
'model__3.xml', 'data_set.xml', 'optimization_parameters__3.xml')
# @unittest.skipIf(not torch.cuda.is_available(), 'cuda is not available')
# def test_configuration_1(self):
# self.run_configuration(os.path.abspath(__file__), 'output__1', 'output_saved__1',
# 'model__1.xml', 'data_set.xml', 'optimization_parameters__1.xml')
#
# def test_configuration_2(self):
# self.run_configuration(os.path.abspath(__file__), 'output__2', 'output_saved__2',
# 'model__2.xml', 'data_set.xml', 'optimization_parameters__2.xml')
#
# def test_configuration_3(self):
# self.run_configuration(os.path.abspath(__file__), 'output__3', 'output_saved__3',
# 'model__3.xml', 'data_set.xml', 'optimization_parameters__3.xml')
@unittest.skipIf(not torch.cuda.is_available(), 'This test should be run with CUDA.')
@unittest.skipIf(platform in ['darwin'], 'This test should only run on linux.')
def test_configuration_4(self):
self.run_configuration(os.path.abspath(__file__), 'output__4', 'output_saved__4',
......
......@@ -31,7 +31,7 @@ TEST_MODULES = [AtlasSkulls, AtlasBrainStructures, AtlasDigits,
PrincipalGeodesicAnalysisDigits,
LongitudinalAtlasStarmen, LongitudinalAtlasHippocampi, LongitudinalAtlasDigits]
# TEST_MODULES = [LongitudinalAtlasHippocampi]
TEST_MODULES = [LongitudinalAtlasHippocampi]
def setup_conda_env():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment