Closed Seanlam1124 closed 10 months ago
Many thanks for reporting this! I just created a new test env. on my M1 Mac, and I don't get the spawn error (but a different one). It seems indeed that I need to require python 3.9.
To test this, could you: Create a fresh env with python 3.9 and parallelproj and try again?
e.g. using mamba
mamba create -n pp-test python=3.9 parallelproj
or
conda create -c conda-forge -n pp-test python=3.9 parallelproj
it did work when change to 3.9. no more error shown. but I also tried on linux, which is also with python 3.8, it import parallelproj without any error (both specific release is 3.8.17). anyway, thanks for you instantly help! parallelproj helps me a lot. thanks for your hard work.
Always welcome. I already submitted a PR to conda-forge to force python>=3.9 (new build should appear in ca 30min).
Version 1.7.2 is also on the way that will require python 3.9 and also replace distutils.spawn
by shutil.which
.
(python 3.9 is required for another reason as well ;)
Many thanks for finding + reportin this!
Hi there, i'm using parallelproj to set up my geometry. visualization is a very good update, but i wonder is there a function for setting up geometry just by inputting the crystals coordinate in 3D, which could easily access from castor. or can i set the lor position, like ring position, instead of lor spacing. because i've met a 2 different spacing in LOR spacing like this.
if I can set up geometry by crystals coordinate, it can also avoid the problem of the order of crystals, since in current result, the crystal order starts from the top panel, but mine starts from the right side.
According to your sketch, you should be able to solve that with stack of polygons, shouldn't you? It seems that you have a polygon where every side has 2 crystals (end points) and the ring spacing is non-uniform (which is supported).
Creating custom "ring-like" modules is also possible, but you have to similar to: https://github.com/gschramm/parallelproj/blob/b326d4480abb2b0d0447ee48cdc1e1352dc43438/python/parallelproj/pet_scanners.py#L191
The important thing is to subclass PETScannerModule
. When doing so, you can define any custom "ring-like" module.
But I have to adapt the input arguments to https://github.com/gschramm/parallelproj/blob/b326d4480abb2b0d0447ee48cdc1e1352dc43438/python/parallelproj/pet_scanners.py#L191 to allow to directly passing a module + ring positions.
i'm running parallelproj on m1 mac with python 3.8. the error message. it showed up when I update parallelproj to version 1.7.1. is it because of my python version or os system
The error message: