Skip to content

Commit

Permalink
Updated the data type for the TP_rate_per_ch config param in readoutg…
Browse files Browse the repository at this point in the history
…en.jsonnet from integer to floating point
  • Loading branch information
bieryAtFnal committed Aug 28, 2023
1 parent 3ff7e0a commit a12eb17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schema/daqconf/readoutgen.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ local nc = moo.oschema.numeric_constraints;
// A temporary schema construction context.
local cs = {

float4 : s.number("float4", "f4", doc="A float of 4 bytes"),

id_list: s.sequence( "IDList", types.count, doc="List of Ids"),

data_file_entry: s.record("data_file_entry", [
Expand Down Expand Up @@ -56,7 +58,7 @@ local cs = {
// Fake cards
s.field( "use_fake_cards", types.flag, default=false, doc="Use fake cards"),
s.field( "generate_periodic_adc_pattern", types.flag, default=false, doc="Generate a periodic ADC pattern inside the input data. Only when FakeCard reader is used"),
s.field( "emulated_TP_rate_per_ch", types.count, default=1, doc="Rate of TPs per channel when using a periodic ADC pattern generation. Values expresses as multiples of the expected rate of 100 Hz/ch"),
s.field( "emulated_TP_rate_per_ch", types.float4, default=1.0, doc="Rate of TPs per channel when using a periodic ADC pattern generation. Values expresses as multiples of the expected rate of 100 Hz/ch"),
s.field( "emulated_data_times_start_with_now", types.flag, default=false, doc="If active, the timestamp of the first emulated data frame is set to the current wallclock time"),
s.field( "default_data_file", types.path, default='asset://?label=ProtoWIB&subsystem=readout', doc="File containing data frames to be replayed by the fake cards. Former -d. Uses the asset manager, can also be 'asset://?checksum=somelonghash', or 'file://somewhere/frames.bin' or 'frames.bin'"),
s.field( "data_files", self.data_files, default=[], doc="Files to use by detector type"),
Expand Down

0 comments on commit a12eb17

Please sign in to comment.