diff --git a/src/NIfTI.jl b/src/NIfTI.jl index 2035322..7caa063 100644 --- a/src/NIfTI.jl +++ b/src/NIfTI.jl @@ -340,10 +340,6 @@ function NIVolume( qoffset_y != 0 || qoffset_z != 0 method3 = orientation != nothing - if method2 && method3 - error("Orientation parameters for Method 2 and Method 3 are mutually exclusive") - end - if method3 if size(orientation) != (3, 4) error("Orientation matrix must be of dimensions (3, 4)") @@ -363,7 +359,7 @@ function NIVolume( slice_start, (qfac, voxel_size..., time_step, 0, 0, 0), 352, scl_slope, scl_inter, slice_end, slice_code, xyzt_units, cal_max, cal_min, slice_duration, - toffset, glmax, glmin, string_tuple(descrip, 80), string_tuple(aux_file, 24), (method2 || method3), + toffset, glmax, glmin, string_tuple(descrip, 80), string_tuple(aux_file, 24), method2, method3, quatern_b, quatern_c, quatern_d, qoffset_x, qoffset_y, qoffset_z, (orientation[1, :]...,), (orientation[2, :]...,), (orientation[3, :]...,), string_tuple(intent_name, 16), NP1_MAGIC), extensions, raw)