-
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 #498 from kif/polarization_id02
Polarization id02
- Loading branch information
Showing
4 changed files
with
38 additions
and
22 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
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
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 |
---|---|---|
|
@@ -26,9 +26,10 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
"Test suite for worker" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__doc__ = "test suite for worker" | ||
__author__ = "Valentin Valls" | ||
__contact__ = "[email protected]" | ||
__license__ = "MIT" | ||
|
@@ -107,7 +108,7 @@ def test_process_1d(self): | |
worker.dummy = "b" | ||
worker.delta_dummy = "c" | ||
worker.method = "d" | ||
worker.polarization = "e" | ||
worker.polarization_factor = "e" | ||
worker.correct_solid_angle = "f" | ||
worker.nbpt_rad = "g" | ||
worker.nbpt_azim = 1 | ||
|
@@ -122,7 +123,7 @@ def test_process_1d(self): | |
self.assertEquals(ai_args["dummy"], worker.dummy) | ||
self.assertEquals(ai_args["delta_dummy"], worker.delta_dummy) | ||
self.assertEquals(ai_args["method"], worker.method) | ||
self.assertEquals(ai_args["polarization_factor"], worker.polarization) | ||
self.assertEquals(ai_args["polarization_factor"], worker.polarization_factor) | ||
self.assertEquals(ai_args["safe"], True) | ||
self.assertEquals(ai_args["data"], data) | ||
self.assertEquals(ai_args["correctSolidAngle"], worker.correct_solid_angle) | ||
|
@@ -143,7 +144,7 @@ def test_process_2d(self): | |
worker.dummy = "b" | ||
worker.delta_dummy = "c" | ||
worker.method = "d" | ||
worker.polarization = "e" | ||
worker.polarization_factor = "e" | ||
worker.correct_solid_angle = "f" | ||
worker.nbpt_rad = "g" | ||
worker.nbpt_azim = 2 | ||
|
@@ -158,7 +159,7 @@ def test_process_2d(self): | |
self.assertEquals(ai_args["dummy"], worker.dummy) | ||
self.assertEquals(ai_args["delta_dummy"], worker.delta_dummy) | ||
self.assertEquals(ai_args["method"], worker.method) | ||
self.assertEquals(ai_args["polarization_factor"], worker.polarization) | ||
self.assertEquals(ai_args["polarization_factor"], worker.polarization_factor) | ||
self.assertEquals(ai_args["safe"], True) | ||
self.assertEquals(ai_args["data"], data) | ||
self.assertEquals(ai_args["correctSolidAngle"], worker.correct_solid_angle) | ||
|
@@ -179,7 +180,7 @@ def test_1d_writer(self): | |
worker.dummy = "b" | ||
worker.delta_dummy = "c" | ||
worker.method = "d" | ||
worker.polarization = "e" | ||
worker.polarization_factor = "e" | ||
worker.correct_solid_angle = "f" | ||
worker.nbpt_rad = "g" | ||
worker.nbpt_azim = 1 | ||
|
@@ -201,7 +202,7 @@ def test_2d_writer(self): | |
worker.dummy = "b" | ||
worker.delta_dummy = "c" | ||
worker.method = "d" | ||
worker.polarization = "e" | ||
worker.polarization_factor = "e" | ||
worker.correct_solid_angle = "f" | ||
worker.nbpt_rad = "g" | ||
worker.nbpt_azim = 1 | ||
|
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