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
OpenDAS
dgl
Commits
5cab4230
Unverified
Commit
5cab4230
authored
Mar 16, 2023
by
Theodore Vasiloudis
Committed by
GitHub
Mar 17, 2023
Browse files
[Dist] Add argument in dispatch_data.py to allow user-defined metadata JSON filename. (#5445)
parent
1e792886
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tools/dispatch_data.py
tools/dispatch_data.py
+7
-1
No files found.
tools/dispatch_data.py
View file @
5cab4230
...
@@ -37,7 +37,7 @@ def get_launch_cmd(args) -> str:
...
@@ -37,7 +37,7 @@ def get_launch_cmd(args) -> str:
def
submit_jobs
(
args
)
->
str
:
def
submit_jobs
(
args
)
->
str
:
# read the json file and get the remaining argument here.
# read the json file and get the remaining argument here.
schema_path
=
"
metadata
.json"
schema_path
=
args
.
metadata
_filename
with
open
(
os
.
path
.
join
(
args
.
in_dir
,
schema_path
))
as
schema
:
with
open
(
os
.
path
.
join
(
args
.
in_dir
,
schema_path
))
as
schema
:
schema_map
=
json
.
load
(
schema
)
schema_map
=
json
.
load
(
schema
)
...
@@ -101,6 +101,12 @@ def main():
...
@@ -101,6 +101,12 @@ def main():
type
=
str
,
type
=
str
,
help
=
"Location of the input directory where the dataset is located"
,
help
=
"Location of the input directory where the dataset is located"
,
)
)
parser
.
add_argument
(
"--metadata-filename"
,
type
=
str
,
default
=
"metadata.json"
,
help
=
"Filename for the metadata JSON file that describes the dataset to be dispatched."
,
)
parser
.
add_argument
(
parser
.
add_argument
(
"--partitions-dir"
,
"--partitions-dir"
,
type
=
str
,
type
=
str
,
...
...
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