Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Holger Niemann
IR_data_access
Commits
9eecdd6a
Commit
9eecdd6a
authored
Jul 17, 2018
by
Holger Niemann
Browse files
Update IR_image_tools.py in case bad pixels cannot be loaded
parent
422bfb4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
IR_image_tools.py
View file @
9eecdd6a
...
...
@@ -168,8 +168,8 @@ def read_bad_pixels_from_file(port, shot_no=None, program=None):
port_name
=
'AEF{0}'
.
format
(
port
)
bad_pixel_file
=
'badpixel_{0}.bpx'
.
format
(
portcamdict
[
OP
][
port_name
][
6
:])
data
=
np
.
genfromtxt
(
IRCAMBadPixels_path
+
bad_pixel_file
,
dtype
=
int
)
try
:
data
=
np
.
genfromtxt
(
IRCAMBadPixels_path
+
bad_pixel_file
,
dtype
=
int
)
bad_pixle_list
=
list
(
zip
(
data
[:,
1
],
data
[:,
0
]))
except
:
bad_pixle_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