Skip to content

Commit

Permalink
doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
brettedw committed Nov 6, 2024
1 parent b51d74b commit 8185e0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/app/jobs/sfms_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

class SFMSCalcJob:
async def calculate_bui(self, start_time: datetime):
"""
Entry point for processing SFMS DMC/DC/BUI rasters. To run from a specific date manually in openshift,
see openshift/sfms-calculate/README.md
"""
logger.info(f"Begin BUI raster calculations -- calculating {DAYS_TO_CALCULATE} days forward")

Check warning on line 27 in api/app/jobs/sfms_calculations.py

View check run for this annotation

Codecov / codecov/patch

api/app/jobs/sfms_calculations.py#L27

Added line #L27 was not covered by tests

start_exec = get_utc_now()

Check warning on line 29 in api/app/jobs/sfms_calculations.py

View check run for this annotation

Codecov / codecov/patch

api/app/jobs/sfms_calculations.py#L29

Added line #L29 was not covered by tests
Expand All @@ -43,7 +47,7 @@ def main():
# command-line arg as 'YYYY-MM-DD HH'
start_time = datetime.strptime(sys.argv[1], "%Y-%m-%d %H").replace(tzinfo=timezone.utc)
except ValueError:
print("Error: Please provide the date and hour in 'YYYY-MM-DD HH' format (as a single string)")
logger.error("Error: Please provide the date and hour in 'YYYY-MM-DD HH' format (as a single string)")
sys.exit(1)
else:
# default to the current datetime
Expand Down

0 comments on commit 8185e0e

Please sign in to comment.