-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'NoneType' when running pycbc_inspiral for gw150914 #4753
Comments
@BeltMarDani Thanks this example may be out of date since the options to the code have evolved somewhat. In the meantime, here's an example we include as part of the CI so I can guarantee works. https://github.com/gwastro/pycbc/tree/master/examples/inspiral |
Hi, at least for me, this isn't working too. >> [lun may 20 12:28:12 CEST 2024] Running pycbc inspiral fftw:openmp with 16 threads
usage:
pycbc_inspiral: error: unrecognized arguments: --fftw-threads-backend openmp
If I remove the problematic argument, then the error remains: >> [lun may 20 12:34:57 CEST 2024] Running pycbc inspiral fftw:openmp with 16 threads
usage:
pycbc_inspiral: error: Backend fftw is not available
run.sh: line 42: --use-compressed-waveforms: command not found
If else I change >> [lun may 20 12:41:33 CEST 2024] Running pycbc inspiral fftw:openmp with 16 threads
2024-05-20T12:41:44.524+02:00 You are using the class-based PyCBC FFT API, with the numpy backed. This is provided for convenience only. If performance is important use the class-based API with one of the other backends (for e.g. MKL or FFTW)
Traceback (most recent call last):
File ".envPy/bin/pycbc_inspiral", line 439, in <module>
bank = waveform.FilterBank(opt.bank_file, flen, delta_f,
File ".envPy/lib/python3.10/site-packages/pycbc/waveform/bank.py", line 679, in __init__
super(FilterBank, self).__init__(filename, approximant=approximant,
File ".envPy/lib/python3.10/site-packages/pycbc/waveform/bank.py", line 266, in __init__
ext = os.path.basename(filename)
File "home/spack/spack/opt/spack/linux-rocky8-icelake/gcc-8.5.0/python-3.10.10-ze5tho3bqaggy3kl6uku3a3353sb37j6/lib/python3.10/posixpath.py", line 142, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
run.sh: line 42: --use-compressed-waveforms: command not found
Can you check if the code is working for you? Perhaps it is some issue concerning my PyCBC installation or something else. |
I think the error above that is that no bank file has been supplied (this should be a This leads me to think you missed a backslash in your If you can confirm this is the case, we can add an issue/PR to give clearer errors in that case, and then close the issue |
Hi Gareth, thank you for your reply! |
Hi, I am trying to reproduce results from pycbc/examples/gw150914 via command lines and instead of running the notebook I just run pycbc_inspiral from the terminal. Appears that, with the same arguments as the ipynb example, I am returned:
I installed PyCBC following the guide and I am running the code in my own python virtual environment. Thanks.
The text was updated successfully, but these errors were encountered: