Skip to content

Commit f482dc8

Browse files
authored
Merge pull request #48 from astro-informatics/mdavezac/issue45
Incorrect rotation
2 parents 5d38d28 + 58518c6 commit f482dc8

File tree

9 files changed

+11
-13
lines changed

9 files changed

+11
-13
lines changed

.github/workflows/conan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: create stable package
3535
shell: bash
3636
run: |
37-
if [ "${{ github.ref }}" = "refs/tags/v1.3.4" ]; then
37+
if [ "${{ github.ref }}" = "refs/tags/v1.3.5" ]; then
3838
channel="stable"
3939
else
4040
channel="testing"
@@ -54,4 +54,4 @@ jobs:
5454

5555
run: |
5656
conan remote add astro-informatics ${CONAN_REMOTE_URL}
57-
conan upload ssht/1.3.4 -c --all -r=astro-informatics
57+
conan upload ssht/1.3.5 -c --all -r=astro-informatics

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ jobs:
119119
mv source-distribution/*.tar.gz wheel-*/*.whl dist
120120
121121
- name: Publish distribution 📦 to Test PyPI
122-
if: ${{ github.ref != 'refs/tags/v1.3.4' }}
122+
if: ${{ github.ref != 'refs/tags/v1.3.5' }}
123123
uses: pypa/gh-action-pypi-publish@master
124124
with:
125125
password: ${{ secrets.TEST_PYPI_TOKEN }}
126126
repository_url: https://test.pypi.org/legacy/
127127

128128
- name: Publish distribution 📦 to PyPI
129-
if: ${{ github.ref == 'refs/tags/v1.3.4' }}
129+
if: ${{ github.ref == 'refs/tags/v1.3.5' }}
130130
uses: pypa/gh-action-pypi-publish@master
131131
with:
132132
password: ${{ secrets.PYPI_TOKEN }}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
22

33
project(
44
Ssht
5-
VERSION "1.3.4"
5+
VERSION "1.3.5"
66
DESCRIPTION "Fast and exact spin spherical harmonic transforms"
77
HOMEPAGE_URL "http://astro-informatics.github.io/ssht/"
88
LANGUAGES C)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[docs-img]: https://img.shields.io/badge/docs-stable-blue.svg
44
[docs-url]: https://astro-informatics.github.io/ssht/
55
[bintray-img]: https://img.shields.io/bintray/v/astro-informatics/astro-informatics/ssht:astro-informatics?label=C%20package
6-
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/ssht:astro-informatics/1.3.4:stable/link
6+
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/ssht:astro-informatics/1.3.5:stable/link
77
[pypi-img]: https://badge.fury.io/py/pyssht.svg
88
[pypi-url]: https://badge.fury.io/py/pyssht
99
[codefactor-img]: https://www.codefactor.io/repository/github/astro-informatics/ssht/badge/main

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class SshtConan(ConanFile):
55
name = "ssht"
6-
version = "1.3.4"
6+
version = "1.3.5"
77
license = "GPL-3.0"
88
url = "https://github.com/astro-informatics/ssht"
99
homepage = "https://github.com/astro-informatics/ssht"

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ======== COMPILER ========
22

33
CC = gcc
4-
OPT = -std=c99 -pedantic -Wall -O3 -fopenmp -DSSHT_VERSION=\"1.3.4\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
4+
OPT = -std=c99 -pedantic -Wall -O3 -fopenmp -DSSHT_VERSION=\"1.3.5\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
55
#OPT = -Wall -g -fopenmp -DSSHT_VERSION=\"1.0b1\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
66

77

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.3.4
2+
current_version = 1.3.5
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<rc>\d+))?

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="pyssht",
29-
version="1.3.4",
29+
version="1.3.5",
3030
author=[
3131
"J. D. McEwen",
3232
"C. R. G. Wallis",

src/pyssht/pyssht.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,12 +1086,10 @@ def rotate_image(image, rot_list, Method=None):
10861086
phi = (j_array)*2*np.pi/Width
10871087

10881088
# convert theta phi to x, y, z
1089-
10901089
x, y, z = s2_to_cart(theta, phi)
10911090

10921091
# rotate x, y, z
1093-
1094-
x, y, z = rot_cart_2d(x, y, z, rot_list)
1092+
x, y, z = rot_cart_2d(-x, -y, -z, rot_list)
10951093

10961094
# convert x, y, z, to theta, phi
10971095
theta, phi = cart_to_s2(x, y, z)

0 commit comments

Comments
 (0)