Skip to content

Commit dbab953

Browse files
committed
Fix tests
1 parent ca6add4 commit dbab953

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nexus3d/matrix.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ def translate(
117117
if offset is not None:
118118
trans += offset
119119

120-
x, y, z = trans[0], trans[2], trans[1] if left_handed else trans
120+
if left_handed:
121+
x, y, z = trans[0], trans[2], trans[1]
122+
else:
123+
x, y, z = trans[0], trans[1], trans[2]
121124
return np.array(
122125
[
123126
[1, 0, 0, x],

nexus3d/nexus_transformations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def format_not_implemented(cli_input: WriterInput):
351351
f"Cannot write to format {file_format} for output file {cli_input.output}"
352352
)
353353

354-
config.left_handed = left_handed
354+
cs_config.left_handed = left_handed
355355

356356
config_dict = {}
357357
if config:

0 commit comments

Comments
 (0)