Skip to content
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

More Python 3 fixes for PyCBC Live #2798

Merged
merged 8 commits into from
Jun 25, 2019
Merged

Conversation

titodalcanton
Copy link
Contributor

@titodalcanton titodalcanton commented Jun 24, 2019

Fixing a few more errors that happen when PyCBC Live runs under Python 3. With these changes, PyCBC Live successfully runs under Python 3 and produces HDF files as well as coinc LIGOLW files.

I have not yet done a careful checks of the correctness of the results and GraceDB uploads are not tested yet.

I am not sure about the h5py workaround I did for saving the approximant array. Comments/alternatives are welcome.

@titodalcanton titodalcanton added python3 to add support for python3 low latency labels Jun 24, 2019
@titodalcanton titodalcanton requested a review from ahnitz June 24, 2019 14:41
@titodalcanton
Copy link
Contributor Author

@spxiwh your comments are also appreciated (I know you diskile Python 3's strings ;)

bin/pycbc_live Outdated Show resolved Hide resolved
bin/pycbc_live Outdated Show resolved Hide resolved
bin/pycbc_live Outdated Show resolved Hide resolved
@spxiwh
Copy link
Contributor

spxiwh commented Jun 25, 2019

I'm happy with the python3 - related changes. but I don't think I understand the wisdom code, so I'd like to wait for Alex to give final approval here.

Copy link
Member

@ahnitz ahnitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fftw api is left intact, so I don't think this interferes with anything else and it reduces the code duplication a bit.

@ahnitz ahnitz merged commit 1e07e03 into gwastro:master Jun 25, 2019
@titodalcanton titodalcanton deleted the live_py3_fftw branch June 28, 2019 15:49
@titodalcanton titodalcanton added this to the PyCBC Live O3 update 2 milestone Jun 28, 2019
@titodalcanton titodalcanton changed the title [WIP] More Python 3 fixes for PyCBC Live More Python 3 fixes for PyCBC Live Dec 4, 2019
OliverEdy pushed a commit to OliverEdy/pycbc that referenced this pull request Apr 3, 2023
* Fix Py3 error with FFTW wisdom I/O

* Fix int division on Py3

* Fix FFTW-related error with Py3

* Fix more int division issues with Py3

* Workaround for h5py not supporting Unicode arrays

* Codeclimate and Ian's comments

* Ian's comment

* Codeclimate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low latency python3 to add support for python3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants