Skip to content

Create a simulated 1D counter

Valentin Valls requested to merge valentin.valls/bliss:sim1d into master

This MR introduce a OneDimSimulationCounter in order to easily create simulated device with the right acquisition device.

It's a rework of a part of !3686 (merged) as an independent MR.

  • Create OneDimSimulationCounter based on SamplingCounter and the refactorization of the FixedShapeCounter
  • Add few other options to the signal generator (coef, poissonian, linear_up)

This can be used the following way

controller = OneDimSimulationController(name="onedim")
c1 = OneDimSimulationCounter("c1", controller=controller, signal="gaussian", coef=10, size=5)
c2 = OneDimSimulationCounter("c2", controller=controller, signal="linear_up", coef=10, poissonian=True, size=20)
Edited by Valentin Valls

Merge request reports