scipp / tof

A simple tool to create time-of-flight chopper cascade diagrams
https://tof.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Convert sampling to integer for pulse distributions #30

Closed nvaytet closed 1 year ago

nvaytet commented 1 year ago

Using tof.Pulse(..., sampling_resolution=1e5) raises an error, because 1e5 is a float in python. We should convert input to int.