Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Wellbore Domain Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Domain Data Management Services
Wellbore
Wellbore Domain Services
Commits
b9116bd2
Commit
b9116bd2
authored
3 years ago
by
Christophe Lallement
Browse files
Options
Downloads
Patches
Plain Diff
welllog documentation improvements
parent
d9a9eca4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!319
Wellbore consistency
Pipeline
#78317
failed
3 years ago
Stage: review
Stage: build
Pipeline: Wellbore Domain Services
#78318
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/consistency/welllog_consistency.py
+9
-4
9 additions, 4 deletions
app/consistency/welllog_consistency.py
app/routers/ddms_v3/welllog_ddms_v3.py
+2
-2
2 additions, 2 deletions
app/routers/ddms_v3/welllog_ddms_v3.py
with
11 additions
and
6 deletions
app/consistency/welllog_consistency.py
+
9
−
4
View file @
b9116bd2
...
...
@@ -12,14 +12,19 @@ class ReferenceCurveIdNotFoundException(RuntimeError):
def
welllog_consistency_check
(
wl
:
WellLog
):
"""
Check if
Is
wellLog consistent.
"""
Check if wellLog
is
consistent.
Each curves in data.Curves must have a unique CurveID.
Welllog must have a curve whose curveID value is equal to the wellLog
'
s ReferenceCurveID value
raise DuplicatedCurveIdException when CurveID are not unique
raise ReferenceCurveIdNotFoundException in case there is no curve id egale to ReferenceCurveID
raise:
Args:
wl (Welllog): wellLog object to be verified
Returns:
Raises:
DuplicatedCurveIdException: All CurveIDs are not unique.
ReferenceCurveIdNotFoundException: No curve whose curveID value are equal to ReferenceCurveID value.
"""
if
not
wl
.
data
:
return
...
...
This diff is collapsed.
Click to expand it.
app/routers/ddms_v3/welllog_ddms_v3.py
+
2
−
2
View file @
b9116bd2
...
...
@@ -159,12 +159,12 @@ async def post_welllog_osdu(
except
DuplicatedCurveIdException
:
raise
HTTPException
(
status_code
=
status
.
HTTP_400_BAD_REQUEST
,
detail
=
f
"
All CurveID in WellLog[
{
idx
}
]
are not
unique
"
detail
=
f
"
All CurveID in WellLog[
{
idx
}
]
should be
unique
"
)
except
ReferenceCurveIdNotFoundException
:
raise
HTTPException
(
status_code
=
status
.
HTTP_400_BAD_REQUEST
,
detail
=
f
"
WellLog[
{
idx
}
]
doesn
'
t
have a curve with a curveID value equal to the ReferenceCurveID value:
'
{
w
.
data
.
ReferenceCurveID
}
'"
detail
=
f
"
WellLog[
{
idx
}
]
should
have a curve with a curveID value equal to the ReferenceCurveID value:
'
{
w
.
data
.
ReferenceCurveID
}
'"
)
storage_client
=
await
get_storage_record_service
(
ctx
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment