check if EDD config is the same before send new config (reduce time waste)
Now, in file
tcs/tnrt/LGPL/CommonSoftware/Backend/src/BackendImpl/BackendEDD.py
, function configure
We compare the current config (already set in EDD system from previous run) with the new config from user. If config is the same, we don't waste time to send the same config again. The function compare_config
uses logic to check the parameters of spectrometer , but it does not check parameters of VLBI (I forgot to add last week).
This issue:
Add more logic to check_config
function to compare of VLBI config parameters.
Recommend:
Same as the provision
function, we can check the top-level provision name:
current_provision = self.edd_master_controller_client.get_current_provision()
In check_config
, add some logic approximately:
if "spectrometer" in current_provision.lower():
# insert code about spectrometer that already works
elif "vlbi" in current_provision.lower():
# insert logic to check parameters output_samplerate and [f_lo].
Example how we configure the EDD system from user parameters is in file
tcs/tnrt/LGPL/CommonSoftware/nash/src/ParameterBlocks.py
, function def gen_edd_config_json(self, preset_config_name, kwargs):