dkazanc / TomoPhantom

Software to generate 2D/3D/4D analytical phantoms and their Radon transforms (parallel beam) for image processing
https://dkazanc.github.io/TomoPhantom/
Apache License 2.0
116 stars 53 forks source link

libraryToDict with Python 2.7 #25

Closed dkazanc closed 6 years ago

dkazanc commented 6 years ago

Script DemoModel2.py fails with error: TypeError: str() takes at most 1 argument (2 given) I think it has to do with extracting parameters from *dat file using libraryToDict function. Check 'Obj' in 'objlist', there should be names of the objects?

paskino commented 6 years ago

can you post the stack trace?

dkazanc commented 6 years ago

there is not much, but it looks like it TomoP2D.Object doesn't like objlist

Traceback (most recent call last):

  File "<ipython-input-3-beab29b04156>", line 30, in <module>
    phantom_2D = TomoP2D.Object(N_size, objlist)

  File "src/TomoP2D.pyx", line 272, in tomophantom.TomoP2D.Object

TypeError: str() takes at most 1 argument (2 given)