Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVCM
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Paolo Veglio
MVCM
Commits
3bd5814d
Commit
3bd5814d
authored
6 months ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
fixed error message
parent
172928d8
No related branches found
Branches containing commit
Tags
0.2.3
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+4
-4
4 additions, 4 deletions
.pre-commit-config.yaml
mvcm/spectral_tests.py
+2
-1
2 additions, 1 deletion
mvcm/spectral_tests.py
with
6 additions
and
5 deletions
.pre-commit-config.yaml
+
4
−
4
View file @
3bd5814d
...
@@ -4,21 +4,21 @@ exclude: "^$"
...
@@ -4,21 +4,21 @@ exclude: "^$"
fail_fast
:
false
fail_fast
:
false
repos
:
repos
:
-
repo
:
https://github.com/PyCQA/flake8
-
repo
:
https://github.com/PyCQA/flake8
rev
:
6
.1.
0
rev
:
7
.1.
1
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
additional_dependencies
:
additional_dependencies
:
[
flake8-docstrings
,
flake8-debugger
,
flake8-bugbear
,
mccabe
]
[
flake8-docstrings
,
flake8-debugger
,
flake8-bugbear
,
mccabe
]
args
:
[
--max-complexity
,
"
10"
,
--ignore
,
"
C901,E501"
]
args
:
[
--max-complexity
,
"
10"
,
--ignore
,
"
C901,E501"
]
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
3.2
.0
rev
:
v
4.6
.0
hooks
:
hooks
:
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
-
id
:
end-of-file-fixer
-
id
:
end-of-file-fixer
-
id
:
check-yaml
-
id
:
check-yaml
-
id
:
check-added-large-files
-
id
:
check-added-large-files
-
repo
:
https://github.com/pycqa/isort
-
repo
:
https://github.com/pycqa/isort
rev
:
5.1
2.0
rev
:
5.1
3.2
hooks
:
hooks
:
-
id
:
isort
-
id
:
isort
language_version
:
python3
language_version
:
python3
...
@@ -33,7 +33,7 @@ repos:
...
@@ -33,7 +33,7 @@ repos:
# - types-requests
# - types-requests
# args: ["--python-version", "3.8", "--ignore-missing-imports"]
# args: ["--python-version", "3.8", "--ignore-missing-imports"]
-
repo
:
https://github.com/psf/black
-
repo
:
https://github.com/psf/black
rev
:
2
3.7
.0
# Replace by any tag/version: https://github.com/psf/black/tags
rev
:
2
4.8
.0
# Replace by any tag/version: https://github.com/psf/black/tags
hooks
:
hooks
:
-
id
:
black
-
id
:
black
language_version
:
python3
# Should be a command that runs python3.6+
language_version
:
python3
# Should be a command that runs python3.6+
...
...
This diff is collapsed.
Click to expand it.
mvcm/spectral_tests.py
+
2
−
1
View file @
3bd5814d
...
@@ -141,7 +141,8 @@ class CloudTests:
...
@@ -141,7 +141,8 @@ class CloudTests:
idx
=
np
.
nonzero
((
rad
>=
thr
)
&
(
self
.
data
[
self
.
scene_name
].
values
[
scene_idx
]
==
1
))
idx
=
np
.
nonzero
((
rad
>=
thr
)
&
(
self
.
data
[
self
.
scene_name
].
values
[
scene_idx
]
==
1
))
if
idx
is
None
:
if
idx
is
None
:
ValueError
(
"
Something went wrong and idx is not defined.
"
)
errstr
=
"
Something went wrong and idx is not defined.
"
raise
ValueError
(
errstr
)
test_bits
=
np
.
zeros
(
rad
.
shape
)
test_bits
=
np
.
zeros
(
rad
.
shape
)
test_bits
[
idx
]
=
1
test_bits
[
idx
]
=
1
...
...
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