Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
0b15c18a
Commit
0b15c18a
authored
Mar 15, 2018
by
Christopher Shallue
Browse files
Explicitly open .fits files in binary mode for Python3 compatibility.
parent
c671a6cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/astronet/light_curve_util/kepler_io.py
research/astronet/light_curve_util/kepler_io.py
+1
-1
No files found.
research/astronet/light_curve_util/kepler_io.py
View file @
0b15c18a
...
@@ -160,7 +160,7 @@ def read_kepler_light_curve(filenames,
...
@@ -160,7 +160,7 @@ def read_kepler_light_curve(filenames,
all_flux
=
[]
all_flux
=
[]
for
filename
in
filenames
:
for
filename
in
filenames
:
with
fits
.
open
(
open
(
filename
,
"r"
))
as
hdu_list
:
with
fits
.
open
(
open
(
filename
,
"r
b
"
))
as
hdu_list
:
light_curve
=
hdu_list
[
light_curve_extension
].
data
light_curve
=
hdu_list
[
light_curve_extension
].
data
time
=
light_curve
.
TIME
time
=
light_curve
.
TIME
flux
=
light_curve
.
PDCSAP_FLUX
flux
=
light_curve
.
PDCSAP_FLUX
...
...
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