예제 #1
0
    def _do_test_valid_transmission(self, settings, trans_ids):
        # Arrange
        dark_run_subtractor = DarkRunSubtraction()
        for setting in settings:
            dark_run_subtractor.add_setting(setting)

        # Create an actual scatter workspace
        transmission_workspace = self._get_transmission_workspace(trans_ids)

        # Execute the dark_run_subtractor - let exceptions flow to help track down errors
        transmission_workspace = dark_run_subtractor.execute_transmission(transmission_workspace, trans_ids)

        return transmission_workspace
    def _do_test_valid_transmission(self, settings, trans_ids):
        # Arrange
        dark_run_subtractor = DarkRunSubtraction()
        for setting in settings:
            dark_run_subtractor.add_setting(setting)

        # Create an actual scatter workspace
        transmission_workspace = self._get_transmission_workspace(trans_ids)

        # Execute the dark_run_subtractor - let exceptions flow to help track down errors
        transmission_workspace = dark_run_subtractor.execute_transmission(transmission_workspace, trans_ids)

        return transmission_workspace
예제 #3
0
    def _do_test_valid_transmission(self, settings, trans_ids):
        # Arrange
        dark_run_subtractor = DarkRunSubtraction()
        for setting in settings:
            dark_run_subtractor.add_setting(setting)

        # Create an actual scatter workspace
        transmission_workspace = self._get_transmission_workspace(trans_ids)

        # Execute the dark_run_subtractor
        try:
            transmission_workspace = dark_run_subtractor.execute_transmission(transmission_workspace, trans_ids)
        # pylint: disable=bare-except
        except:
            self.assertFalse(True, "The DarkRunSubtraction executed with an error")
        return transmission_workspace