Skip to content

Commit

Permalink
Suppress implicit return in _is_data_scaleint, also codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Attolight-NTappy committed Jun 25, 2024
1 parent d914fda commit 94f0ae1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rsciio/digitalsurf/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,8 @@ def _is_data_scaleint(
"_INTENSITYIMAGE",
]:
return True
else:
return False

def _get_uncompressed_datasize(self) -> int:
"""Return size of uncompressed data in bytes"""
Expand Down
4 changes: 3 additions & 1 deletion rsciio/tests/test_digitalsurf.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ def test_norm_int_data(dtype, special, fullscale):
dat[2] = minint
dat[11] = maxint

Zscale = 0.0 #to avoid CodeQL error: pot. non-initialized var
Zoffset = -np.inf #to avoid CodeQL error: pot. non-initialized var
pointsize, Zmin, Zmax, Zscale, Zoffset, data_int = dh._norm_data(dat, special)

off = minint + 1 if special and fullscale else dat.min()
Expand All @@ -690,7 +692,7 @@ def test_writetestobjects_rgb(tmp_path,transpose):
d.save(fn)
else:
d.save(fn)

d2 = hs.load(fn)
d2.save(fn)
d3 = hs.load(fn)
Expand Down

0 comments on commit 94f0ae1

Please sign in to comment.