Skip to content

Commit

Permalink
🔧 use hdr description when default
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiller15 committed Jan 31, 2024
1 parent 8b8059b commit b1d8d35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/commands/encoder_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ pub fn encoder_main(vpaths: Vec<&str>, opath: &str, jpath: &str) {
tl, f.field
),
};
println!("Old description for field {}: {}", f.field, f.description);
f.description = hdr_info_id2description(header.header_records(), &f.field, &f.description);
println!("New description for field {}: {}", f.field, f.description);
let hdr_des = hdr_info_id2description(header.header_records(), &f.field, &f.description);
if f.description == fields::default_description_string() {
f.description = hdr_des;
};
}

let zfile = std::fs::File::create(&zpath).unwrap();
Expand Down

0 comments on commit b1d8d35

Please sign in to comment.