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
f27ec7f6
Commit
f27ec7f6
authored
Jun 25, 2018
by
Chris Shallue
Committed by
Christopher Shallue
Jun 25, 2018
Browse files
Update file permission mask in generate_download_script.py.
PiperOrigin-RevId: 202034593
parent
3f5cef69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
research/astronet/astronet/data/generate_download_script.py
research/astronet/astronet/data/generate_download_script.py
+4
-1
No files found.
research/astronet/astronet/data/generate_download_script.py
View file @
f27ec7f6
...
...
@@ -33,6 +33,7 @@ from __future__ import print_function
import
argparse
import
csv
import
os
import
stat
import
sys
parser
=
argparse
.
ArgumentParser
()
...
...
@@ -90,7 +91,9 @@ def main(argv):
f
.
write
(
"echo 'Finished downloading {} Kepler targets to {}'
\n
"
.
format
(
num_kepids
,
FLAGS
.
download_dir
))
os
.
chmod
(
FLAGS
.
output_file
,
0o744
)
# Make the download script executable.
# Make the download script executable.
os
.
chmod
(
FLAGS
.
output_file
,
stat
.
S_IRWXU
|
stat
.
S_IRGRP
|
stat
.
S_IROTH
)
print
(
"{} Kepler targets will be downloaded to {}"
.
format
(
num_kepids
,
FLAGS
.
output_file
))
print
(
"To start download, run:
\n
{}"
.
format
(
"./"
+
FLAGS
.
output_file
...
...
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