Skip to content

Commit

Permalink
GTC-2977 Make input_calc one line
Browse files Browse the repository at this point in the history
  • Loading branch information
manukala6 committed Nov 19, 2024
1 parent 8fd677f commit b55f67a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN pip install . -t python
# to change the hash of the file and get TF to realize it needs to be
# redeployed. Ticket for a better solution:
# https://gfw.atlassian.net/browse/GTC-1250
# change 13
# change 14

RUN yum install -y zip geos-devel

Expand Down
7 changes: 1 addition & 6 deletions src/datapump/sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,12 +731,7 @@ class DISTAlertsSync(Sync):
dataset_name = "umd_glad_dist_alerts"
source_bucket = "earthenginepartners-hansen"
source_prefix = "DIST-ALERT"
input_calc = """
np.where((A>=30) & (A<255) & (B>0) & (C>=2) & (C<255),
np.where(C<4, 20000 + B, 30000 + B),
-1
)
"""
input_calc = "np.where((A>=30) & (A<255) & (B>0) & (C>=2) & (C<255), np.where(C<4, 20000 + B, 30000 + B), -1)"

def __init__(self, sync_version: str):
self.sync_version = sync_version
Expand Down

0 comments on commit b55f67a

Please sign in to comment.