Skip to content

Commit

Permalink
[pixeldata] Fix more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Enet4 committed Mar 21, 2024
1 parent e31b2d3 commit 4ed90ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pixeldata/src/gdcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ mod tests {
#[cfg(feature = "ndarray")]
#[test]
fn test_to_ndarray_signed_word_no_lut() {
use crate::{ConvertOptions, ModalityLutOption};

let test_file = dicom_test_files::path("pydicom/JPEG2000.dcm").unwrap();
let obj = open_file(test_file).unwrap();
let options = ConvertOptions::new().with_modality_lut(ModalityLutOption::None);
Expand Down
5 changes: 4 additions & 1 deletion pixeldata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
//!
use byteorder::{ByteOrder, NativeEndian};
#[cfg(not(feature = "gdcm"))]
use dicom_core::{DataDictionary, DicomValue};
use dicom_encoding::adapters::DecodeError;
#[cfg(not(feature = "gdcm"))]
Expand All @@ -122,7 +123,9 @@ use num_traits::NumCast;
use rayon::iter::{IntoParallelIterator, IntoParallelRefIterator, ParallelIterator};
#[cfg(all(feature = "rayon", feature = "image"))]
use rayon::slice::ParallelSliceMut;
use snafu::{Backtrace, ResultExt, Snafu, OptionExt};
use snafu::{Backtrace, ResultExt, Snafu};
#[cfg(any(not(feature = "gdcm"), feature = "image"))]
use snafu::OptionExt;
#[cfg(not(feature = "gdcm"))]
use snafu::ensure;
#[cfg(not(feature = "gdcm"))]
Expand Down

0 comments on commit 4ed90ab

Please sign in to comment.