Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d0e813c
libstempo.pyx: shuffle some observation/pulsar stricture contents to …
mattpitkin Apr 21, 2025
40762da
Update packaging and setuptools build-time requirements
mattpitkin Apr 27, 2025
da52f3d
pyproject.toml: switch license back to table style to still allow Pyt…
mattpitkin Apr 27, 2025
c32ada4
Update pyproject.toml - add missing "
mattpitkin Apr 28, 2025
e5b8022
Update pyproject.toml - move license file back to setuptools section
mattpitkin Apr 28, 2025
7448b6b
install_tempo2.sh: allow install version to be specified
mattpitkin Apr 28, 2025
480b807
Merge branch 'update_structures' of github.com:mattpitkin/libstempo i…
mattpitkin Apr 28, 2025
fcbf749
install_tempo2.sh: fix script exit
mattpitkin Apr 28, 2025
d37526d
libstempo.pyx: switch from using sprintf to copy par file and time fi…
mattpitkin Apr 28, 2025
d28986e
libstempo.pyx: various string copying changes
mattpitkin Apr 30, 2025
9cf8842
libstempo.pyx: try string function from Cython docs
mattpitkin May 1, 2025
2a502f5
Minor fix
mattpitkin May 1, 2025
09498a6
Re-add matrix of test runners
mattpitkin May 1, 2025
45a0058
Update libstempo.pyx: try using snprintf
mattpitkin May 7, 2025
46c9dff
Update libstempo.pyx: remove tabs
mattpitkin May 7, 2025
11f047f
Update libstempo.pyx: remove another tab
mattpitkin May 7, 2025
db4b31f
libstempo.pyx: various compilation fixes
mattpitkin May 7, 2025
65aba0f
Ignore bad characters
mattpitkin Dec 1, 2025
2e03d28
Make sure encoding is all utf8 and erroring values are ignored
mattpitkin Dec 1, 2025
e70a08e
Print out file names
mattpitkin Dec 1, 2025
21bf4ed
Try plalform dependent longdouble
mattpitkin Dec 4, 2025
cc7e19f
Revert "Try plalform dependent longdouble"
mattpitkin Dec 4, 2025
ff01554
Simplify string function
mattpitkin Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
tempo2-version: ['2021.07.1-correct', '2023.05.1', '2024.11.1', '2025.02.1']

steps:
- name: Checkout repository
Expand All @@ -34,11 +35,11 @@ jobs:
run: |
brew unlink gcc && brew link gcc
brew install automake libtool
./install_tempo2.sh
./install_tempo2.sh -v ${{ matrix.tempo2-version }}
- name: Install tempo2 on linux
if: runner.os == 'Linux'
run: |
./install_tempo2.sh
./install_tempo2.sh -v ${{ matrix.tempo2-version }}
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
Expand Down
47 changes: 36 additions & 11 deletions install_tempo2.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
#!/bin/bash -e

# get install location
if [ $# -eq 0 ]
then
echo 'No install location defined, using' $HOME'/.local/'
prefix=$HOME/.local/
else
prefix=$1
echo 'Will install in' $prefix
# default Tempo2 version
tempo2version="2021.07.1-correct"

usage() { echo "Usage: $0 [-p <install-path>] [-v <tempo2-version>]" 1>&2; exit 1; }

# default install location
prefix=$HOME/.local/
if [[ $# -eq 1 && "$1" != "-h" ]]; then
# interpret single argument as install location
prefix=$1
echo 'Will install in' $prefix
else
# allow arguments
while getopts ":p:v:" o; do
case "${o}" in
p)
prefix=${OPTARG}
;;
v)
tempo2version=${OPTARG}
;;
*)
usage
;;
esac
done
fi

echo 'Will install in' $prefix
echo 'Will attempt to install tempo2 version' $tempo2version

# make a destination directory for runtime files
export TEMPO2=$prefix/share/tempo2
mkdir -p $TEMPO2

curl -O https://bitbucket.org/psrsoft/tempo2/get/2021.07.1-correct.tar.gz
tar zxvf 2021.07.1-correct.tar.gz
dl=$(curl -Of https://bitbucket.org/psrsoft/tempo2/get/${tempo2version}.tar.gz || echo $?)
if [ $dl -ne 0 ]; then
echo 'Version '${tempo2version}' of Tempo2 does not exist. Please see, e.g., https://github.com/mattpitkin/tempo2/tags for a list of allowed version tags.'
exit 1
fi
tar -zxvf ${tempo2version}.tar.gz

cd psrsoft-tempo2-*

Expand All @@ -33,5 +58,5 @@ cp -r T2runtime/* $TEMPO2
cd ..

rm -rf psrsoft-tempo2-*
rm -rf 2021.07.1-correct.tar.gz
rm -rf ${tempo2version}.tar.gz
echo "Set TEMPO2 environment variable to ${TEMPO2} to make things run more smoothly."
Loading
Loading