Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Evry-Paris-Saclay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Software Tools
Evry-Paris-Saclay
Commits
f9a7d424
Commit
f9a7d424
authored
5 months ago
by
paradoxe-tech
Browse files
Options
Downloads
Patches
Plain Diff
argument parser natively supports default values
parent
546386bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+1
-1
1 addition, 1 deletion
main.py
with
1 addition
and
1 deletion
main.py
+
1
−
1
View file @
f9a7d424
...
...
@@ -8,7 +8,7 @@ if __name__ == "__main__":
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
-d
"
,
"
--device
"
,
type
=
str
,
default
=
"
cuda:0
"
,
help
=
"
Set the device (cpu or cuda:0)
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
default
=
"
./results/mutants
"
,
help
=
"
Set the path for the output directory
(defaults to ./results/mutants)
"
)
parser
.
add_argument
(
"
-o
"
,
"
--output
"
,
type
=
str
,
default
=
"
./results/mutants
"
,
help
=
"
Set the path for the output directory
"
)
parser
.
add_argument
(
"
-v
"
,
"
--verbose
"
,
type
=
int
,
choices
=
[
0
,
1
,
2
],
default
=
1
,
help
=
"
Set the verbosity between 0 and 2
"
)
parser
.
add_argument
(
"
--receptor
"
,
type
=
str
,
required
=
True
,
help
=
"
Set the receptor filepath
"
)
parser
.
add_argument
(
"
--ligand
"
,
type
=
str
,
required
=
True
,
help
=
"
Set the ligand filepath
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment