Skip to content

Commit 95c342b

Browse files
authored
Bugfix grid transmission (#146)
* Fix bug in grid transmission Closes #145 see also https://github.com/i4Ds/STIX-GSW/pull/215/files * Add changelog
1 parent f30588c commit 95c342b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/146.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix bug in orientation of grids for internal shadowing.

stixpy/calibration/grid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _calculate_grid_transmission(grid_params, xy_flare_stix):
6464
-------
6565
Transmission through all grids defined by the grid parameters
6666
"""
67-
orient = 180 * u.deg - grid_params["o"] * u.deg # As viewed from the detector side (data recorded from front)
67+
orient = grid_params["o"] * u.deg # As viewed from the detector side (data recorded from front)
6868
pitch = grid_params["p"]
6969
slit = grid_params["slit"]
7070
thick = grid_params["thick"]

0 commit comments

Comments
 (0)