pysted.utils.sampled_flash_manipulations

pysted.utils.sampled_flash_manipulations(events_curves_path, delay, rescale=True, seed=None)

Samples a light curve and modifies it to make it more prettier for training (i.e. more like the hand crafted light curves)

  • converts the values to ints

  • add variable delay at the start of the curve to delay the flash

  • (optional) rescales the values between [1, 28]

Parameters:
  • events_curves_path – Path to the .npy file containing the light curves

  • delay – Number of steps where the flash value stays ctw at 1 before the flash starts

  • rescale – Whether or not the light curve will be rescaled. For now, if true, simply rescales between [1, 28] because this is the value range for

  • seed – Sets the seed for random sampling :)