in src/loading_manifest/osdu_wellborepath_manifest.py [0:0]
def read_data_from_csv_file(csv_file):
top_md = None
base_md = None
name_md = "MD"
col_md = 0
(col_md,) = \
cm.csv_colname_to_colindex(csv_file,
(name_md,),
(col_md,))
with open(csv_file, mode='r', encoding='utf-8') as infile:
reader = csv.reader(infile)
skip_first_row = True
for rows in reader:
if skip_first_row:
skip_first_row = False
continue
md = float(rows[col_md].strip())
if top_md is None or md < top_md:
top_md = md
if base_md is None or md > base_md:
base_md = md
return top_md, base_md