lib/openc3/models/cvt_model.rb in openc3-5.5.0.pre.beta0 vs lib/openc3/models/cvt_model.rb in openc3-5.5.0

- old
+ new

@@ -238,14 +238,13 @@ # parse item and update lookups with packet_name and target_name and keys # return an ordered array of hash with keys def self._parse_item(lookups, overrides, item, scope:) target_name, packet_name, item_name, value_type = item.split('__') - raise ArgumentError, "items must be formatted as TGT__PKT__ITEM__TYPE" if target_name.nil? || packet_name.nil? || item_name.nil? || value_type.nil? # We build lookup keys by including all the less formatted types to gracefully degrade lookups # This allows the user to specify WITH_UNITS and if there is no conversions it will simply return the RAW value - case value_type.upcase + case value_type when 'RAW' keys = [item_name] when 'CONVERTED' keys = ["#{item_name}__C", item_name] when 'FORMATTED'