class_docstr: Unit Tests for SEVIRI calibration algorithm.
class_docstr_tok: ["Unit","Tests","for","SEVIRI","calibration","algorithm","."]
docstr: Test conversion from radiance to brightness temperature.
docstr_tok: ["Test","conversion","from","radiance","to","brightness","temperature","."]
code: def test_ir_calibrate(self):
      """Test conversion from radiance to brightness temperature."""
      result = self.algo.ir_calibrate(
          RADIANCES_OUTPUT, CHANNEL_NAME, CAL_TYPE1
      )
      xr.testing.assert_allclose(result, TBS_OUTPUT1, rtol=1e-5)
      assert result.dtype == np.float32
  
      result = self.algo.ir_calibrate(
          RADIANCES_OUTPUT, CHANNEL_NAME, CAL_TYPE2
      )
      xr.testing.assert_allclose(result, TBS_OUTPUT2, rtol=1e-5)
  
      with pytest.raises(NotImplementedError):
          self.algo.ir_calibrate(
              RADIANCES_OUTPUT, CHANNEL_NAME, CAL_TYPEBAD
          )
  
imports: import unittest
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from satpy.readers.seviri_base import SEVIRICalibrationAlgorithm, SEVIRICalibrationHandler
label_desc: Use image node_id 3 for calling the TestSEVIRICalibrationAlgorithm obj's underlying member method code with example usage: obj.test_ir_calibrate() without return types