ChristophKirst / ClearMap

ClearMap is a python toolbox for the analysis and registration of volumetric data from cleared tissues.
http://christophkirst.github.io/ClearMap/build/html/index.html
GNU General Public License v3.0
49 stars 41 forks source link

Error during Transform point coordinates with 'elastix_input.txt' #46

Closed kenjp1223 closed 1 year ago

kenjp1223 commented 1 year ago

Hello I am facing an issue when conducting transformation of point coordinates. I am working with a new environment on a cluster computer. The error I am facing is below, it seems like when I run the transformPoints function, it is not able to refer to 'elastix_input.txt' file. I am not finding where this file is or what it is. Can anyone help me out here?

>>> points = transformPoints(points, transformDirectory = CorrectionAlignmentParameter["resultDirectory"], indices = False, resultDirectory = None);
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/.../ClearMap/ClearMap/Alignment/Elastix.py", line 709, in transformPoints
    tmpFile = os.path.join(tempfile.tempdir, 'elastix_input.txt');
  File "/.../miniconda3/envs/ClearMap1/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'