I recently reloaded Anaconda and pynbody and since then am unable to centre snapshots.
The error is pasted below. The command which triggers this is (f is the snapshot):
The same happens with other snapshots. pynbody 1.4.2, Spyder 5.4.3. MacOS Big Slur 11.2.3.
I have tried reinstalling everything - no luck.
Thanks.
OMP: Error #15: Initializing libomp.dylib, but found libomp.dylib already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see
http://openmp.llvm.org/Fatal Python error: Aborted
Main thread:
Current thread 0x000000011b14be00 (most recent call first):
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/filt.py", line 168 in __call__
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/filt.py", line 30 in where
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/snapshot/__init__.py", line 1821 in __init__
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/snapshot/__init__.py", line 266 in __getitem__
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/analysis/halo.py", line 198 in hybrid_center
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/pynbody/analysis/halo.py", line 330 in center
File "/Users/stuartanderson/Documents/Astronomy/Projects/Gaia_DR3/Karl_project/Code/
max_likelihood_models_v1.0.py", line 359 in <module>
File "/Users/stuartanderson/anaconda3/lib/python3.11/bdb.py", line 600 in run
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/spyder_kernels/customize/spyderpdb.py", line 900 in run
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/spyder_kernels/customize/spydercustomize.py", line 473 in exec_code
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/spyder_kernels/customize/spydercustomize.py", line 615 in _exec_file
File "/Users/stuartanderson/anaconda3/lib/python3.11/site-packages/spyder_kernels/customize/spydercustomize.py", line 660 in debugfile
File "/var/folders/vw/y2p_zs9x235dn4tp6n2xbv4w0000gn/T/ipykernel_35125/2655388733.py", line 1 in <module>