metacore icon indicating copy to clipboard operation
metacore copied to clipboard

`spec_type_to_var_spec`: consider adding `format` when remove duplicates?

Open kaz462 opened this issue 1 year ago • 0 comments

Current spec_type_to_var_spec combines multiple rows into one when variable, length, label, type are the same, but formats are different, e.g., below two rows from Variables sheet are considered as one row, so one of the formats is dropped:

Order Dataset Variable Label Data Type Length Significant Digits Format
28 ADPFT PARAMCD Parameter Code Text 8   $PFT
22 ADAETTE PARAMCD Parameter Code Text 8   $AETTE

var_spec:

variable length label type format common
PARAMCD 8 Parameter Code Text $PFT FALSE

Should format be considered when removing duplicates in spec_type_to_var_spec ?

kaz462 avatar Mar 24 '23 03:03 kaz462