Skip to content

Commit

Permalink
Fix for ensemble table
Browse files Browse the repository at this point in the history
  • Loading branch information
IKCAP committed Oct 17, 2023
1 parent 4870bb2 commit ea2259e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pylipd/lipd.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def get_ensemble_tables(self, dsname = None, ensembleVarName = None, ensembleDep
nan_replace = re.compile(re.escape('NaN'), re.IGNORECASE)

qres_df['ensembleDepthValues']=qres_df['ensembleDepthValues'].apply(lambda row : np.fromstring(row.strip("[]"), sep=','))
qres_df['ensembleVariableValues']=qres_df['ensembleVariableValues'].apply(lambda row : np.array(ast.literal_eval(nan_replace.sub(row, 'None'))))
qres_df['ensembleVariableValues']=qres_df['ensembleVariableValues'].apply(lambda row : np.array(ast.literal_eval(nan_replace.sub('None', row))))


return qres_df
Expand Down
1 change: 1 addition & 0 deletions pylipd/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
exit()
'''


# Load from local
lipd = LiPD()
data_path = local_lipd_dir + '/Ocn-Palmyra.Nurhati.2011.lpd'
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pylipd
version = 1.3.7.b1
version = 1.3.7.b2
author = Varun Ratnakar, Deborah Khider
author_email = [email protected]
description= Python utilities for handling LiPD data
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from setuptools import setup, find_packages

version = '1.3.7.b1'
version = '1.3.7.b2'

# Read the readme file contents into variable
def read(fname):
Expand Down

0 comments on commit ea2259e

Please sign in to comment.