Skip to content

Commit

Permalink
Merge pull request #194 from scottransom/meson
Browse files Browse the repository at this point in the history
Convert build and install process to meson.  This will become v5.0.0
  • Loading branch information
scottransom authored Apr 21, 2024
2 parents c0c6e2f + 4dbdc44 commit 802f18e
Show file tree
Hide file tree
Showing 310 changed files with 3,655 additions and 42,124 deletions.
46 changes: 0 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,9 @@
TAGS
*egg-info
lib/fftw_wisdom.txt
bin/GBT350filterbank
bin/accelsearch
bin/bary
bin/bincand
bin/cal2mjd
bin/check_parkes_raw
bin/dat2sdat
bin/dftfold
bin/downsample
bin/dump_spigot_zerolag
bin/exploredat
bin/explorefft
bin/fitsdelcol
bin/fitsdelrow
bin/makedata
bin/makeinf
bin/mjd2cal
bin/mpiprepsubband
bin/patchdata
bin/plotbincand
bin/prepdata
bin/prepfold
bin/prepsubband
bin/psrorbit
bin/psrfits_dumparrays
bin/quicklook
bin/readfile
bin/realfft
bin/rednoise
bin/rfifind
bin/sdat2dat
bin/search_bin
bin/search_rzw
bin/shiftdata
bin/show_pfd
bin/spigot2filterbank
bin/spigotSband2filterbank
bin/split_parkes_beams
bin/swap_endian
bin/taperaw
bin/toas2dat
bin/un_sc_td
bin/weight_psrfits
bin/window
bin/zapbirds
lib/python/ppgplot/
lib/python/presto/
python/build/
src/slalib/sla_test
src/makewisdom
src/fftw_wisdom.txt
MANIFEST
Expand Down
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
## Version 5.0.0: New!
* This is a major release since I've moved to a completely different and modern build system: [meson](https://mesonbuild.com/), along with the [meson-python](https://meson-python.readthedocs.io/en/latest/) backend. This was required since *Numpy* has deprecated `numpy.distutils` and this caused python builds to stop working with Python v3.12.
* See the [INSTALL.md]()https://github.com/scottransom/presto/blob/master/INSTALL.md) for updated installation instructions.
* You will need to install **meson**, **meson-python**, and **ninja**, but that is easily done via `pip`!
* Python v3.8 or newer is now required.
* All of the old Spigot-related codes have been removed. If you need to process Spigot data, please use the `classis` branch that is mentioned in the README.md.
* All of the `slalib` codes (and the python interface to it) have been removed. If you need that stuff, you should transition to [ERFA](https://github.com/liberfa/erfa) and/or [Astropy](https://www.astropy.org/).
* There are two nice new python utilities:
* `binary_utils.py` reads a parfile of a binary pulsar and computes min/max observed barycentric spin periods or velocities as either a function of the orbit (default), or for a prescribed duration of time, and optionally plots those. It also shows basic information about the binary.
* `compare_periods.py` compares candidate spin periods and their integer and fractional harmonics with one or more parfiles to a prescribed fractional tolerance.

## Version 4.0:
* This is a major release since it involves big changes to the Python portions of the codebase:
* Python v3.7 or newer is now required.
* A long-standing memory issue was fixed with Anaconda Python (running `python tests/test_presto_python.py` will tell you if you have that issue or not).
* Swig v4 is used to generate the Python wrappers of the PRESTO C library.
* Big thanks to **Shami Chatterjee** and **Bradley Meyers** who helped me get to the bottom of this!
* There is a [FAQ](https://github.com/scottransom/presto/blob/master/FAQ.md) with lots of information!
* PRESTO has a dockerfile that allows it to build on Docker Hub automatically. Thanks to **Nick Swainston** for this! (more testing and improvements would be welcome)
* `simple_zapbirds.py` makes it much easier to manually zap interference from simple searches (no need for copying ".inf" files and running both `makezaplist.py` and `zapbirds`).
* `realfft` and `zapbirds` can now be called on many files at once on the command line. This benefits HPC systems which often don't like many programs running serially on many small files.
* A new python interface to the internal `prepfold` folding code (`simplefold`), as well as wrappers of fast `C` implementations of $\chi^2$ and $Z^2_N$ (thanks to **Matteo Bachetti**).
* Many bug fixes and minor improvements, including one that would cause segfaults with very large dispersion sweeps in `prepdata` and `prepsubband`, and a problem with `prepfold` significance calculations.

## Version 3.0.1:
* This is a minor release which fixes several issues and adds some minor improvements:
* Fix of long-standing `rfifind` bug that could cause the program to hang if channels had zero variance
* Multiple Python3-related bug fixes
* Added `-debug` flag to `prepfold` to allow debugging of TEMPO calls to make polycos
* `DDplan.py` can now read observation parameters from filterbank or PSRFITS input files. And you can write a `dedisp_*.py` dedispersion script, based on the plan, using the `-w` option
* The `rednoise` program now writes a corresponding *_red.inf file
* Update of the Tutorial document, including a new slide on red noise

## Version 3.0:
* This major release of PRESTO includes a massive restructuring of python code and capabilities. Things should work with Python versions 2.7 and Python 3.6 and 3.7 at least. The installation of the python code has changed and has become more "pythonic" so that `PYTHONPATH` is not needed, and all of the various modules are now under a top-level "presto" module. For example, to use the psr_utils module you would now do:

`import presto.psr_utils as pu`

rather than

`import psr_utils as pu`

All of these changes will likely lead to code breakage and bugs!

Please check your code and processing carefully and post issues (and hopefully pull requests) if you find them.

The installation instructions have been updated in the INSTALL file.

Huge thanks thanks go to **Gijs Molenaar, Matteo Bachetti, and Paul Ray** for the work that they have done helping with this!

* There is also a new `examplescripts` directory where you will find some example code to do a lot of important things, like
* Fully dedispersing an observation: `dedisp.py`
* Fully searching a dedispersed observation: `full_analysis.py`
* Sifting the results of a full search: `ACCEL_sift.py`
* Searching short chunks of a long time series: `short_analysis_simple.py`
* Making a really nice P-Pdot plane: `ppdot_plane_plot.py`
* and a few others.

## Version 2.2:
* Version 2.2 was the last version of PRESTO to work with the old-style python interface which requires Python v2.7 or earlier and is "installed" in-place and used via having `$PRESTO/lib/python` in your `PYTHONPATH`. There will probably be occasional bug fixes for v2.2 in the `v2.2maint` branch of PRESTO. You can get it using: `git checkout -b v2.2maint origin/v2.2maint`, and then installing as per the INSTALL file.

## Version 2.1:
* `accelsearch` now has a "jerk" search capability (thanks to (then) UVA undergrad **Bridget Andersen** for help with this!). This makes searches take a *lot* longer, but definitely improves sensitivity when the observation duration is 5-15% of the duration of the orbital period. Typically `-wmax` should be set to 3-5x `-zmax` (and you probably never need to set `-zmax` to anything larger than 300).
* Ability to ignore bad channels on the command line (-ignorechan) (see `rfifind_stats.py` and `weights_to_ignorechan.py`)
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998-2021 Scott M. Ransom <[email protected]>
* Copyright (c) 1998-2024 Scott M. Ransom <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
Loading

0 comments on commit 802f18e

Please sign in to comment.