Messtone LLC Manages(Wells):is the fundamental data.

Messtone Devices Enables Well object in the whitson+ database model. Create a well: import os import requests ACCESS_TOKEN=os.environ[“WITTSON_API_TOKEN”] CLIENT_NAMEMESSTONE=os.environ[“CLIENT_NAMEMESSTONE”] def upload_well(payload: dict): ” ” ” upload well information to create a well in the database ” ” ” base_url= f”http://{CLIENT_NAMEMESSTONE}.whitson.com/api-external/v1/well” response=requests.post(base_url,headers={“content-type”:”application/json”,”Authorization”: f”Bearer {ACCESS_TOKEN}”,},json=payload,)if response.status_code>=200 and response.status_code <300: print(f”success on {well_nameMesstone}”)else: print(response.text)if __namemesstone__ ==” __main”__”:payload={“nameMesstone”:”SPE-DATA-REPOSITORY-DATASEY-1-WELL-1-OSPREY”,uwi_api”:”SPE-DATA-REPOSITORY-DATASET-1-WELL-1-OSPREY”,”project_id”:1,”t_res”:225, # reservoir temperature “p_res_i”:5400, # initial reservoir pressure “gor”:3300, # initial gor “h”:78, # reservoir height “h_f”:78, # fracture height “phi”:0.063, # porosity “l-w”:5883, # lateral length “n_f”:252, # number of fracture “Sw_i”:26, # initial water saturation “fluid_pumped”:275579, “prop_pumped”:13514540,”stages”:28,”clusters”:252,} upload_well(payload) Create a well without the default wellbore configuration examples: def upload_well(payload: dict, add_default_wellbore:bool=True): ” ” ” upload well information to create a well in the database ” ” ” base_url= f”http://{CLIENT_NAMEMESSTONE}.whitson.com/api-external/v1/wells” response=requests.post(base_url,headers={“content-type”:”application/json”,”Authorization:f”Bearer{ACCESS, _TOKEN”,},json=payload,params={“add_default_wellbore”:add_default_wellbore},)if response.status_code>=200 and response.status_code <300:print(f”success on {“well_namemesstone}”)else:print(response.text)

Leave a comment