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

Separating FFTFIT into a separate Python package? #176

Open
astrogewgaw opened this issue Oct 30, 2022 · 2 comments
Open

Separating FFTFIT into a separate Python package? #176

astrogewgaw opened this issue Oct 30, 2022 · 2 comments

Comments

@astrogewgaw
Copy link
Contributor

I just wanted to know if it would be possible to package the code for the FFTFIT algorithm bundled with PRESTO into a separate Python package under the MIT License? PRESTO already uses f2py to bind the code to Python, but I thought it would be nice to have it as a small Python package that is independent of PRESTO's Python installation. Is it fine if I go ahead with this? I thought this might also be useful for other software, like PINT (ref: nanograv/PINT#231; while they have implemented a native implementation for FFTFIT here: nanograv/PINT#777, I still think it would be nice to have a separate package, because it could be used to test their implementation against the original code as well).

@scottransom
Copy link
Owner

I think it is fine for you to go ahead with it! I'd be happy to re-license the parts of the code that I wrote.

@astrogewgaw
Copy link
Contributor Author

astrogewgaw commented Nov 1, 2022

That's great @scottransom 👍🏾 ! I have already started the work here: https://github.com/astrogewgaw/fftfit. Currently the code installs without a hitch (at least on my machine) and does what I think it should. I am using the same method that PRESTO uses to bind the code to Python, via f2py and numpy.disutils. There is a single method on the Python side, also called fftfit, that is just a renamed form of the measure_phase function from the get_TOAs.py script. Right now the code is just licensed in my name, but feel free to tell me how I should change that appropriately to give credit where it is due 😅 . The repo is open to pull requests, if you want to contribute any of the changes directly. Thanks for both the prompt response, and the re-licensing 😁 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants