-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab35ced
commit 765abbd
Showing
8 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { RftObservations } from './RftObservations'; | ||
import type { SummaryVectorObservations } from './SummaryVectorObservations'; | ||
|
||
/** | ||
* A collection of observations associated with a field/case/ensemble | ||
*/ | ||
export type Observations = { | ||
summary: Array<SummaryVectorObservations>; | ||
rft: Array<RftObservations>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* A specific RFT (Repeat Formation Tester) observation. | ||
* | ||
* Attributes: | ||
* value (float): The measured value of the observation. | ||
* comment (Optional[str]): An optional comment associated with the observation. | ||
* error (float): The measurement error associated with the observation. | ||
* zone (str): The zone or region associated with the observation. | ||
* md_msl (float): Measured depth from mean sea level. | ||
* x (float): X utm coordinate of the observation. | ||
* y (float): Y utm coordinate of the observation. | ||
* z (float): Z utm coordinate of the observation. | ||
*/ | ||
export type RftObservation = { | ||
value: number; | ||
comment: (string | null); | ||
error: number; | ||
zone: string; | ||
md_msl: number; | ||
'x': number; | ||
'y': number; | ||
'z': number; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { RftObservation } from './RftObservation'; | ||
|
||
/** | ||
* A collection of RFT (Repeat Formation Tester) observations for a specific well at a specific date. | ||
* | ||
* Attributes: | ||
* well (str): Unique well identifier | ||
* date (str): Observation date | ||
* comment (Optional[str]): An optional comment associated with the collection of observations. | ||
* observations (List[RftObservation]): A list of RFT observations associated with this collection. | ||
*/ | ||
export type RftObservations = { | ||
well: string; | ||
date: string; | ||
comment: (string | null); | ||
observations: Array<RftObservation>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* A single observation of a summary vector at a specific date. | ||
*/ | ||
export type SummaryVectorDateObservation = { | ||
date: string; | ||
comment: (string | null); | ||
value: number; | ||
error: number; | ||
label: string; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { SummaryVectorDateObservation } from './SummaryVectorDateObservation'; | ||
|
||
/** | ||
* A collection of observations of a summary vector. | ||
*/ | ||
export type SummaryVectorObservations = { | ||
vector_name: string; | ||
comment: (string | null); | ||
observations: Array<SummaryVectorDateObservation>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Observations } from '../models/Observations'; | ||
|
||
import type { CancelablePromise } from '../core/CancelablePromise'; | ||
import type { BaseHttpRequest } from '../core/BaseHttpRequest'; | ||
|
||
export class ObservationsService { | ||
|
||
constructor(public readonly httpRequest: BaseHttpRequest) {} | ||
|
||
/** | ||
* Get Observations | ||
* Retrieve all observations found in sumo case | ||
* @param caseUuid Sumo case uuid | ||
* @param ensembleName Ensemble name | ||
* @returns Observations Successful Response | ||
* @throws ApiError | ||
*/ | ||
public getObservations( | ||
caseUuid: string, | ||
ensembleName: string, | ||
): CancelablePromise<Observations> { | ||
return this.httpRequest.request({ | ||
method: 'GET', | ||
url: '/observations/observations/', | ||
query: { | ||
'case_uuid': caseUuid, | ||
'ensemble_name': ensembleName, | ||
}, | ||
errors: { | ||
422: `Validation Error`, | ||
}, | ||
}); | ||
} | ||
|
||
} |