-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2318 from kif/merge_fiber_to_test_suite
Include fiber integrator into test suite
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
__date__ = "16/04/2024" | ||
__date__ = "30/10/2024" | ||
|
||
import sys | ||
import unittest | ||
|
@@ -95,6 +95,7 @@ | |
from . import test_units | ||
from . import test_uncertainties | ||
from . import test_ring_extraction | ||
from . import test_fiber_integrator | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
@@ -156,7 +157,7 @@ def suite(): | |
testsuite.addTest(test_error_model.suite()) | ||
testsuite.addTest(test_uncertainties.suite()) | ||
testsuite.addTest(test_ring_extraction.suite()) | ||
|
||
testsuite.addTest(test_fiber_integrator.suite()) | ||
return testsuite | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" | ||
__date__ = "23/10/2024" | ||
__date__ = "30/10/2024" | ||
|
||
import unittest | ||
import logging | ||
|
@@ -444,3 +444,15 @@ def test_sample_orientation_equivalence(self): | |
) | ||
|
||
self.assertLess((abs(res_so_4.intensity) - abs(res_so_3.intensity)).max(), threshold) | ||
|
||
|
||
def suite(): | ||
testsuite = unittest.TestSuite() | ||
loader = unittest.defaultTestLoader.loadTestsFromTestCase | ||
testsuite.addTest(loader(TestFiberIntegrator)) | ||
return testsuite | ||
|
||
|
||
if __name__ == '__main__': | ||
runner = unittest.TextTestRunner() | ||
runner.run(suite()) |