Index: dialin/dg/calibration_record.py =================================================================== diff -u -r32e628abcbbd3fd70866505d9f2836a6f732ef06 -r789d813055e215ed902b4445fc6a8432c548e872 --- dialin/dg/calibration_record.py (.../calibration_record.py) (revision 32e628abcbbd3fd70866505d9f2836a6f732ef06) +++ dialin/dg/calibration_record.py (.../calibration_record.py) (revision 789d813055e215ed902b4445fc6a8432c548e872) @@ -53,6 +53,7 @@ _DEFAULT_ULTRAFILTER_TAU_C_PER_MIN = -1.0 _DEFAULT_RESERVOIR_TAU_C_PER_MIN = -0.25 _DEFAULT_ULTRAFILTER_VOLUME_ML = 700 + _DEFAULT_COND_SENSOR_TEMP_COMP_COEFF = 0.0207 # Maximum allowed bytes that are allowed to be written to EEPROM in firmware # The padding size then is calculated to be divisions of 16 @@ -318,7 +319,9 @@ # element is the dictionary that was built and the second element is the byte size of the dictionary. records_with_sizes = [self._prepare_pressure_sensors_cal_record(), self._prepare_flow_sensors_cal_record(), self._prepare_load_cells_record(), self._prepare_temperature_sensors_record(), - self._prepare_conductivity_sensors_record(), self._prepare_pumps_record(), + self._prepare_conductivity_sensors_record(), + self._prepare_conductivity_sensors_temperature_compensation_record(), + self._prepare_pumps_record(), self._prepare_volume_record(), self._prepare_acid_concentrates_record(), self._prepare_bicarb_concentrates_record(), self._prepare_filters_record(), self._prepare_fans_record(), self._prepare_accelerometer_sensor_record(), @@ -480,6 +483,31 @@ return hardware_group, group_byte_size + def _prepare_conductivity_sensors_temperature_compensation_record(self): + """ + Handles creating the calibration dictionary of the conductivity sensors temperature compensation hardware group. + + @return: conductivity sensors temperature compensation hardware group dictionary and the byte size of this + hardware group + """ + hardware_names = ['cpi', 'cpo', 'cd1', 'cd2'] + group_byte_size = 0 + group_name = 'conductivity_sensors_temp_comp' + hardware_group = OrderedDict({group_name: OrderedDict()}) + hardware = OrderedDict() + + for i in hardware_names: + hardware[i] = {'gain': ['