Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Preemptive Iterator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
TROPHIME Valentin
Preemptive Iterator
Commits
d42d1bfc
Commit
d42d1bfc
authored
4 months ago
by
TROPHIME Valentin
Browse files
Options
Downloads
Patches
Plain Diff
add autocomplete for scripts cli
parent
22d2991b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/heatmap.py
+4
-1
4 additions, 1 deletion
scripts/heatmap.py
scripts/requirements.txt
+1
-1
1 addition, 1 deletion
scripts/requirements.txt
with
5 additions
and
2 deletions
scripts/heatmap.py
+
4
−
1
View file @
d42d1bfc
#! /usr/bin/env python3
#! /usr/bin/env python3
#
import
argparse
import
argparse
from
io
import
TextIOWrapper
from
io
import
TextIOWrapper
...
@@ -9,10 +10,11 @@ from bisect import bisect_left
...
@@ -9,10 +10,11 @@ from bisect import bisect_left
import
os
import
os
import
re
import
re
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
import
pandas
import
pandas
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
numpy
as
np
import
argcomplete
DEFAULT_PARAMETERS
=
{
DEFAULT_PARAMETERS
=
{
"
Reactivity
"
:
[
10
],
"
Reactivity
"
:
[
10
],
...
@@ -268,6 +270,7 @@ def main():
...
@@ -268,6 +270,7 @@ def main():
type
=
int
,
type
=
int
,
default
=
DEFAULT_PARAMETERS
[
"
Reactivity
"
][
0
],
default
=
DEFAULT_PARAMETERS
[
"
Reactivity
"
][
0
],
)
)
argcomplete
.
autocomplete
(
parser
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
match
args
.
subparser_name
:
match
args
.
subparser_name
:
...
...
This diff is collapsed.
Click to expand it.
scripts/requirements.txt
+
1
−
1
View file @
d42d1bfc
argcomplete==3.5.1
contourpy==1.3.0
contourpy==1.3.0
cycler==0.12.1
cycler==0.12.1
fonttools==4.54.1
fonttools==4.54.1
...
@@ -11,7 +12,6 @@ pyparsing==3.1.4
...
@@ -11,7 +12,6 @@ pyparsing==3.1.4
python-dateutil==2.9.0.post0
python-dateutil==2.9.0.post0
pytz==2024.2
pytz==2024.2
scipy==1.14.1
scipy==1.14.1
seaborn==0.13.2
six==1.16.0
six==1.16.0
tabulate==0.9.0
tabulate==0.9.0
tzdata==2024.2
tzdata==2024.2
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