Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
EnPT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
EnMAP
GFZ_Tools_EnMAP_BOX
EnPT
Commits
d3b10e80
Commit
d3b10e80
authored
1 year ago
by
Daniel Scheffler
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/fix_deadpixel_valueerror' into 'main'
Bugfix/fix deadpixel valueerror Closes
#103
See merge request
!88
parents
50316193
f2101892
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!88
Bugfix/fix deadpixel valueerror
Pipeline
#59664
passed
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
HISTORY.rst
+3
-2
3 additions, 2 deletions
HISTORY.rst
enpt/processors/dead_pixel_correction/dead_pixel_correction.py
+4
-2
4 additions, 2 deletions
...processors/dead_pixel_correction/dead_pixel_correction.py
with
7 additions
and
4 deletions
HISTORY.rst
+
3
−
2
View file @
d3b10e80
...
...
@@ -2,11 +2,12 @@
History
=======
0.19.3 (
coming soon
)
-------------------
-
0.19.3 (
2023-04-03
)
-------------------
* !87: Adapted conda environments to latest changes of enmapbox requirements.
enpt_enmapboxapp is now installed from conda-forge as this is now available.
* !88: Fixed #103 ("ValueError: cannot convert float NaN to integer" within dead pixel correction).
0.19.2 (2023-03-22)
...
...
This diff is collapsed.
Click to expand it.
enpt/processors/dead_pixel_correction/dead_pixel_correction.py
+
4
−
2
View file @
d3b10e80
...
...
@@ -345,8 +345,10 @@ def interp_nodata_spatially_2d(data_2d: np.ndarray,
data_2d
=
np
.
array
(
DataFrame
(
data2int
)
.
interpolate
(
method
=
method
,
axis
=
axis
)).
astype
(
data_2d
.
dtype
)
if
fill_value
:
data_2d
[
np
.
isnan
(
data_2d
)]
=
fill_value
if
np
.
isfinite
(
fill_value
):
mask_nan
=
np
.
isnan
(
data_2d
)
if
True
in
mask_nan
:
data_2d
[
mask_nan
]
=
fill_value
else
:
raise
ValueError
(
implementation
,
'
Unknown implementation.
'
)
...
...
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