Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
jonas.sinjan
hrt_pipeline
Commits
52dcdbd0
Commit
52dcdbd0
authored
Jun 23, 2021
by
jonas
Browse files
flip check
parent
3d99cf1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
hrt_pipe.py
View file @
52dcdbd0
...
...
@@ -198,6 +198,8 @@ def phihrt_pipe(data_f, dark_f = '', flat_f = '', scale_data = True, norm_f = Tr
data_arr
[
scan
]
*=
81920
/
127
#conversion factor if 16 bits
if
'IMGDIRX'
in
hdr_arr
[
scan
]
and
hdr_arr
[
scan
][
'IMGDIRX'
]
==
'YES'
:
print
(
"This scan has been flipped in the Y axis to conform to orientation standards."
)
#--------
# test if the scans have different sizes
...
...
utils.py
View file @
52dcdbd0
...
...
@@ -51,7 +51,7 @@ def fits_get_sampling(file,verbose = False):
From SPGPylibs PHITools
'''
print
(
'-- Obtaining voltages......'
)
#
print('-- Obtaining voltages......')
fg_head
=
3
try
:
with
fits
.
open
(
file
)
as
hdu_list
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment