Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
disable makingMaps() for SSD, specify setuptools version
Browse files Browse the repository at this point in the history
  • Loading branch information
p-phung committed Aug 19, 2024
1 parent 66bcb17 commit dfa596d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RUN apt-get update && apt-get -y upgrade && \
# update pip
RUN python3 -m pip install --no-cache-dir \
pip \
setuptools \
setuptools==70.3.0 \
wheel \
--upgrade \
&& python3 -m pip install --no-cache-dir numpy
Expand Down
4 changes: 2 additions & 2 deletions pipeline/lib/flood_model/dynamicDataDb.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def upload(self):
self.uploadTriggerPerStation()
self.uploadCalculatedAffected()
self.uploadRasterFile()
if self.countryCodeISO3=='SSD':
self.uploadImage()
# if self.countryCodeISO3=='SSD':
# self.uploadImage()

def sendNotification(self):
leadTimes = SETTINGS[self.countryCodeISO3]['lead_times']
Expand Down
6 changes: 3 additions & 3 deletions pipeline/lib/flood_model/runPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def main():
logger.info('--------Finished flood extent')
fc.exposure.callAllExposure()
logger.info('--------Finished exposure')
if COUNTRY_CODE =='SSD':
fc.exposure.makeMaps()
logger.info('--------Finished make maps')
# if COUNTRY_CODE =='SSD':
# fc.exposure.makeMaps()
# logger.info('--------Finished make maps')
fc.db.upload()
logger.info('--------Finished upload')
fc.db.sendNotification()
Expand Down

1 comment on commit dfa596d

@gulfaraz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@p-phung It's best practice not to commit commented code into git. For further reading.

Please sign in to comment.