All times UTC-3 (ART)
FOSS4G and the climate crisis: Let's get to work
Rob Emanuele, Microsoft
All times UTC-3 (ART)
FOSS4G and the climate crisis: Let's get to work
Rob Emanuele, Microsoft
Sometimes you want to keep a node in an Azure Batch pool up and running as you're debugging tasks so that you don't have to pay the waiting time to spin up and down a node. You may want to push a new image to ACR with the same tag to run the job based on fixes based on the last run. However, Azure Batch nodes don't pull an updated image by default, and will run with the same image if a task is run again even if ACR has been updated.
The best solution I've found to speed things up is:
{ | |
"type": "Feature", | |
"properties": { | |
"ID": "4937061", | |
"OBJECTID": "3503", | |
"Provider Number": "440232", | |
"X": -87.689643485999966, | |
"Y": 36.320170566000058, | |
"NAME": "HOUSTON COUNTY COMMUNITY HOSPITAL", | |
"ADDRESS": "5001 E. MAIN STREET", |
{ | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": {}, | |
"geometry": { | |
"type": "Polygon", | |
"coordinates": [ | |
[ |
from datetime import datetime | |
import pandas as pd | |
import requests | |
def get_usafacts_county_cases(url): | |
r = requests.get(url) | |
return pd.read_csv(io.BytesIO(r.content)) | |
def get_new_cases(url): |
{ | |
"Estimated Beds Available (Conventional) - Lower": [ | |
0, | |
212 | |
], | |
"Estimated Beds Available (Conventional) - Upper": [ | |
0, | |
425 | |
], | |
"Estimated Additional Ventilators Required (Conventional) - Lower": [ |
"""STAC Model classes. | |
""" | |
import os | |
import json | |
from copy import copy, deepcopy | |
STAC_VERSION = '0.7.0' | |
class STAC_IO: |