From c0159aa4232b32bf93aa70e82b8f0b0d8ce4c5d7 Mon Sep 17 00:00:00 2001 From: sherimickelson Date: Wed, 20 Jun 2018 19:42:51 -0600 Subject: [PATCH] Create workaround for bug in data request version 01.00.25 --- source/pyconform/miptableparser.py | 4 ++++ source/pyconform/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/pyconform/miptableparser.py b/source/pyconform/miptableparser.py index b59cbced..11359ef3 100644 --- a/source/pyconform/miptableparser.py +++ b/source/pyconform/miptableparser.py @@ -521,6 +521,8 @@ def parse_table(self,exp,mips,tables,v_list,table_var_fields,table_axes_fields,t var['coordinates'] = sp_var_d + '|' + var['coordinates'] else: var['coordinates'] = sp_var.dimensions + if 'grid_latitude' in var['coordinates']: + var['coordinates'] = var['coordinates'].replace('grid_latitude','gridlatitude') dims = var['coordinates'].split('|') for d in dims: if d not in axes_list and d != '' and d != 'None': @@ -548,6 +550,8 @@ def parse_table(self,exp,mips,tables,v_list,table_var_fields,table_axes_fields,t # Add variable to variable dictionary variables[c_var.label] = var for a in axes_list: + if 'grid_latitude' in a: + a = 'gridlatitude' if a in dq.inx.grids.label.keys(): id = dq.inx.grids.label[a] if len(id) > 0: diff --git a/source/pyconform/version.py b/source/pyconform/version.py index 1ac0de2c..ce5f98f0 100644 --- a/source/pyconform/version.py +++ b/source/pyconform/version.py @@ -1,2 +1,2 @@ # Single place for version information -__version__ = '0.2.4' +__version__ = '0.2.5'