Commit 0dff8fc0 authored by Gregory Harris's avatar Gregory Harris
Browse files

Minor fix

parent 518f0899
......@@ -132,25 +132,25 @@ class LasCommandLoader(CLICommandsLoader):
def _register_input_path_argument(self, arg_context):
arg_context.argument('input_path', type=str, options_list=('-p', '--path'),
help='Path to a file or folder containing one or more LAS file(s).')
help='Path to a file or folder containing one or more LAS file(s).')
def _register_curves_argument(self, arg_context):
arg_context.argument('curves', type=str, options_list=('--curves'), nargs='*',
help='The list of curves to retrieve (space separated list), returns all curves if not specified.')
help='The list of curves to retrieve (space separated list), returns all curves if not specified.')
def _register_wellbore_id_flag(self, arg_context):
arg_context.argument('wellbore_id', type=str, options_list=('--wellbore_id'),
help='The wellbore id of the record.')
help='The wellbore id of the record.')
def _register_welllog_id_argument(self, arg_context):
arg_context.argument('welllog_id', type=str, options_list=('--welllog_id'),
help='The welllog id of the record.')
help='The welllog id of the record.')
def _register_url_and_token_arguments(self, arg_context):
arg_context.argument('url', type=str, options_list=('-u', '--url'),
help='The base url of the OSDU instance.')
help='The base url of the OSDU instance.')
arg_context.argument('token', type=str, options_list=('-t', '--token'),
help='A valid bearer token used to authenticate with the OSDU instance.')
help='A valid bearer token used to authenticate with the OSDU instance.')
def main():
......
import json
from pathlib import Path
from knack.log import get_logger
from lasloader.file_loader import LasParser, LocalFileLoader, FileUtilities
......@@ -16,12 +17,11 @@ def printlas(input_path):
"""
las_parser = LasParser(LocalFileLoader())
logger.info(f"LAS path: {input_path}")
for file_path in FileUtilities.get_filenames(Path(input_path), '.las'):
logger.warning(f"LAS file: {file_path}")
las_data = las_parser.load_las_file(input_path)
las_data = las_parser.load_las_file(file_path)
print(las_data.header)
print("")
def convert(input_path: str, config_path: str, wellbore_id: str):
......@@ -35,6 +35,7 @@ def convert(input_path: str, config_path: str, wellbore_id: str):
las_parser = LasParser(LocalFileLoader())
config = Configuration(LocalFileLoader(), config_path)
logger.info(f"LAS path: {input_path}")
for file_path in FileUtilities.get_filenames(Path(input_path), '.las'):
logger.warning(f"LAS file: {file_path}")
las_data = las_parser.load_las_file(file_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment