I have tried opgrading pylinac by pip install pylinac --upgrade --user, however, it says that it is already version 2.4.0.1. I still get the error.
If i look at the file adress for image.py there are two versions of image.py, one named with a conflicting copy by your name, as well as other conflicted copies of geometry.py and io.py.
This is what they contain:
image (jameslaptop’s conflicted copy 2018-11-01)
import copy
from collections import Counter
from datetime import datetime
from io import BytesIO
import os.path as osp
import os
import pydicom
from pydicom.errors import InvalidDicomError
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image as pImage
from scipy import ndimage
from scipy.misc import imresize
import scipy.ndimage.filters as spf
from .utilities import is_close, minmax_scale
from .decorators import type_accept, value_accept
from .geometry import Point
from .io import get_url, TemporaryZipDirectory, retrieve_filenames, is_dicom_image
from .profile import stretch as stretcharray
from …settings import get_dicom_cmap
image.py
import copy
from collections import Counter
from datetime import datetime
from io import BytesIO
import re
import os.path as osp
import os
from typing import Union, Sequence, List, Any, Tuple, Optional
import pydicom
from pydicom.errors import InvalidDicomError
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image as pImage
from scipy import ndimage
import scipy.ndimage.filters as spf
import argue
from .utilities import is_close
from .geometry import Point
from .io import get_url, TemporaryZipDirectory, retrieve_filenames, is_dicom_image, retrieve_dicom_file
from .profile import stretch as stretcharray
from .typing import NumberLike
from …settings import get_dicom_cmap, PATH_TRUNCATION_LENGTH
Both of the image.py does not contain the same code as the one shown in closes #187 · jrkerns/pylinac@1df3432 · GitHub , in addition to the calls there miss some other code snippets in the conflicted copy. I guess pylinac uses the one actually named image.py, and since this code contains the call for imresize i could try to implement the opdates you introduced in the opgrade to 2.4.0.0 to that file.
tirsdag den 9. februar 2021 kl. 14.54.54 UTC+1 skrev jker...@gmail.com: