Skip to content

Commit

Permalink
Fix bug for studyData/X.X.X.XXXXX-meta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 25, 2023
1 parent 63ca2bf commit b453fb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rx-repack"
description = "Rust re-write of px-repack"
version = "1.0.2"
version = "1.0.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
3 changes: 2 additions & 1 deletion src/log_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pub(crate) fn write_logs(
let study_meta_fname = study_data_dir.join(format!("{}-meta.json", &common.StudyInstanceUID));
if !study_meta_fname.is_file() {
let study_meta_data = StudyDataMeta::new(&dcmtags, common);
write_json(study_meta_data, study_meta_fname)?;
let data: HashMap<_, _> = [(&common.StudyInstanceUID, study_meta_data)].into();
write_json(data, study_meta_fname)?;
}

// write stuff to seriesData/Y.Y.Y.YYYYY-meta.json
Expand Down

0 comments on commit b453fb3

Please sign in to comment.