From a2bbd213146b8363e30728cf12262dd4094d8f24 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Sun, 24 Nov 2019 14:04:07 +0100 Subject: [PATCH] Partially revert 7ea0eb9 --- ixmp/core.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ixmp/core.py b/ixmp/core.py index e68d22d7c..1a2cc3bd1 100644 --- a/ixmp/core.py +++ b/ixmp/core.py @@ -925,17 +925,7 @@ def par(self, name, filters=None, **kwargs): filters : dict index names mapped list of index set elements """ - result = self._backend('item_get_elements', 'par', name, filters) - - # FIXME message_ix requires 'year' columns to be returned as integers - # This code should be in a message_ix override of this method. - dtypes = {} - for idx_set, col_name in zip(self.idx_sets(name), - self.idx_names(name)): - if idx_set == 'year': - dtypes[col_name] = int - - return result.astype(dtypes) if len(dtypes) else result + return self._backend('item_get_elements', 'par', name, filters) def add_par(self, name, key_or_data=None, value=None, unit=None, comment=None, key=None, val=None):