Skip to content

Commit

Permalink
algo treatment name + clean print
Browse files Browse the repository at this point in the history
  • Loading branch information
fdobad committed Apr 1, 2024
1 parent 06fa657 commit 02de7ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fireanalyticstoolbox/algorithm_treatment.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def displayName(self):
Returns the translated algorithm name, which should be used for any
user-visible display of the algorithm name.
"""
return self.tr("AAA Raster Treatment")
return self.tr("Raster Treatment")

def group(self):
return self.tr(self.groupId())
Expand Down Expand Up @@ -648,9 +648,9 @@ def do_raster_treatment(
current_value_nodata = list(zip(*np.where(current_value == nodata)))
current_treatment_nodata = list(zip(*np.where(current_treatment == nodata)))
target_value_nodata = [(h, w) for h, w in np.ndindex(H, W) if np.all(target_value[:, h, w] == nodata)]
print(f"{current_value_nodata=}, {current_treatment_nodata=}, {target_value_nodata=}")
# print(f"{current_value_nodata=}, {current_treatment_nodata=}, {target_value_nodata=}")
nodata_idxs = set(current_value_nodata + current_treatment_nodata + target_value_nodata)
print(f"{nodata_idxs=}")
# print(f"{nodata_idxs=}")

# Sets
m.H = pyo.Set(initialize=range(H))
Expand Down

0 comments on commit 02de7ff

Please sign in to comment.