diff --git a/python/daphnemodules/daphnemodulesapp_gen.py b/python/daphnemodules/daphnemodulesapp_gen.py index bbe7b9c..f6b1656 100644 --- a/python/daphnemodules/daphnemodulesapp_gen.py +++ b/python/daphnemodules/daphnemodulesapp_gen.py @@ -34,8 +34,8 @@ def unpack( j : dict, block : str ) -> dict : def to_adc( j : dict ) -> daphnecontroller.ADCConf : ret = daphnecontroller.ADCConf( resolution = j['resolution'], - output_formal = j['output_format'], - SB_first = j['SB_first ']) + output_format = j['output_format'], + SB_first = j['SB_first']) return ret @@ -102,7 +102,7 @@ def get_daphnemodules_app( v_bias = 0 if afe not in ext_biases else ext_biases[afe], adc = adc if afe not in ext_adcs else to_adc(ext_adcs[afe]), pga = pga if afe not in ext_pgas else to_pga(ext_pgas[afe]), - lna = lna if afe not in ext_lnas else to_lan(ext_lnas[afe]) + lna = lna if afe not in ext_lnas else to_lna(ext_lnas[afe]) ) ) channels=[] diff --git a/scripts/daphne_details_example.json b/scripts/daphne_details_example.json index f4c58c8..df00806 100644 --- a/scripts/daphne_details_example.json +++ b/scripts/daphne_details_example.json @@ -7,7 +7,7 @@ "self_trigger_threshold" : 10, "full_stream_channels" : [ 1, 3, 39 ], "channels" : { - "gains" : [ {"id" : 2, "value" : 1}], + "gains" : [ {"id" : 0, "value" : 1}], "offsets": [ {"id" : 3, "value" : 54}], "trims" : [ {"id" : 4, "value" : 87}] }, diff --git a/scripts/daphne_example_config.json b/scripts/daphne_example_config.json index a38d5b0..5aac67b 100644 --- a/scripts/daphne_example_config.json +++ b/scripts/daphne_example_config.json @@ -6,6 +6,6 @@ "ers_impl": "local" }, "daphne": { - "slots": [13,4] + "slots": [13] } }