docstr: ...Test that Hawkes em kernel dt parameter is correctly
  synchronized
docstr_tok: ["...","Test","that","Hawkes","em","kernel","dt","parameter","is","correctly","synchronized"]
code: def test_hawkes_em_kernel_dt(self):
      """...Test that Hawkes em kernel dt parameter is correctly
      synchronized
      """
      kernel_support = 4
      kernel_size = 10
      learner = HawkesEM(kernel_support, kernel_size=kernel_size)
      self.assertEqual(learner.kernel_dt, 0.4)
      self.assertEqual(learner._learner.get_kernel_fixed_dt(), 0.4)
  
      kernel_dt_1 = 0.2
      learner.kernel_dt = kernel_dt_1
      self.assertEqual(learner.kernel_dt, kernel_dt_1)
      self.assertEqual(
          learner._learner.get_kernel_fixed_dt(), kernel_dt_1
      )
      self.assertEqual(learner.kernel_size, 20)
      expected_kernel_discretization = [
          0.0,
          0.2,
          0.4,
          0.6,
          0.8,
          1.0,
          1.2,
          1.4,
          1.6,
          1.8,
          2.0,
          2.2,
          2.4,
          2.6,
          2.8,
          3.0,
          3.2,
          3.4,
          3.6,
          3.8,
          4.0,
      ]
      np.testing.assert_array_almost_equal(
          learner.kernel_discretization, expected_kernel_discretization
      )
  
      kernel_dt_1 = 0.199
      learner.kernel_dt = kernel_dt_1
      self.assertEqual(learner.kernel_dt, 0.19047619047619047)
      self.assertEqual(
          learner._learner.get_kernel_fixed_dt(), 0.19047619047619047
      )
      self.assertEqual(learner.kernel_size, 21)
  
imports: import unittest
  import numpy
  from tick.hawkes.inference import HawkesEM
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_intensities, hawkes_log_likelihood
  from tick.hawkes import SimuHawkes, HawkesKernelTimeFunc, HawkesKernelExp, SimuHawkesExpKernels
  from tick.base import TimeFunction
label_desc: Use image node_id 10 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_em_kernel_dt() without return types