Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Loading
Wellbore DDMS Data Loader
Commits
19174280
Commit
19174280
authored
Oct 15, 2021
by
Gregory Harris
Browse files
Post merge linting fixes
parent
14db8410
Pipeline
#72085
passed with stage
in 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lasloader/well_service.py
View file @
19174280
import
json
from
typing
import
Tuple
import
urllib
from
lasio.las
import
LASFile
from
knack.log
import
get_logger
from
lasloader.file_loader
import
FileValidationError
,
LasParser
,
LocalFileLoader
from
lasio.las
import
LASFile
from
lasloader.file_loader
import
FileValidationError
,
LasParser
,
LocalFileLoader
from
lasloader.osdu_client
import
OsduClient
,
LasLoaderWebResponseError
from
lasloader.record_mapper
import
LasToRecordMapper
,
Record
,
MappingUtilities
,
MapWellLogToLas
,
WellBoreRecord
...
...
@@ -137,7 +135,6 @@ class WellLogService:
return
mapper
.
build_las_file
()
def
_validate_welllog_data_ingest_file
(
self
,
las_data
:
LASFile
,
welllog_id
:
str
)
->
None
:
"""
Validate a LAS File against an existing well log record.
...
...
@@ -166,6 +163,8 @@ class WellLogService:
welllog_curve_ids
=
welllog_record
.
get_curveids
()
return
welllog_well_name
,
welllog_curve_ids
class
WellBoreService
:
def
__init__
(
self
,
client
:
OsduClient
,
well_log_service
:
WellLogService
):
"""
...
...
src/test/test_record_mapper.py
View file @
19174280
...
...
@@ -3,7 +3,8 @@ import urllib
from
pandas
import
DataFrame
from
lasio
import
LASFile
from
unittest.mock
import
Mock
from
lasloader.record_mapper
import
Record
,
AttributeBuilder
,
LasToRecordMapper
,
WellLogRecord
,
MappingUtilities
,
MapWellLogToLas
,
WellboreRecord
from
lasloader.record_mapper
import
Record
,
AttributeBuilder
,
LasToRecordMapper
,
WellLogRecord
,
MappingUtilities
from
lasloader.record_mapper
import
MapWellLogToLas
,
WellboreRecord
from
lasloader.file_loader
import
LasParser
,
LocalFileLoader
from
lasloader.configuration
import
Configuration
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment