Skip to content

Commit

Permalink
Move the tests outside of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
jond01 committed Feb 4, 2022
1 parent de98f6f commit aed13a0
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import numpy as np
import pandas as pd

from medio.tests.itk_dcm_orientations.orientations_utils import (ornt_list, ornt_direction_dict, is_right_handed_ornt,
direction2ornt)
from medio.tests.itk_dcm_orientations.itk_utils import set_image_direction, get_image_direction
from tests.itk_dcm_orientations.orientations_utils import (
ornt_list, ornt_direction_dict, is_right_handed_ornt, direction2ornt
)
from tests.itk_dcm_orientations.itk_utils import set_image_direction, get_image_direction


def get_saved_ornt(image, desired_ornt, remove=True):
Expand All @@ -31,13 +32,17 @@ def get_saved_ornt(image, desired_ornt, remove=True):
img = itk.image_from_array(arr)
img_rgb = itk.image_from_array(arr_rgb, is_vector=True)

df = pd.DataFrame(columns=['Orientation',
'Right/Left-handed orientation',
'Success',
'Saved orientation',
'RGB success',
'RGB saved orientation'
])
df = pd.DataFrame(
columns=
[
'Orientation',
'Right/Left-handed orientation',
'Success',
'Saved orientation',
'RGB success',
'RGB saved orientation',
]
)

for ornt in ornt_list:
state_dict = dict.fromkeys(df.columns)
Expand Down
File renamed without changes.

0 comments on commit aed13a0

Please sign in to comment.