Skip to content

Commit 47d5479

Browse files
authored
Revert "backward compatibility for caching done with old pandas indeces (brain-score#11)" (brain-score#12)
This reverts commit bd1df2e.
1 parent bd1df2e commit 47d5479

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

result_caching/__init__.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import itertools
55
import logging
66
import numpy as np
7-
import pandas as pd
87
import os
98
import pickle
109
import xarray as xr
@@ -139,11 +138,8 @@ def load(self, function_identifier):
139138

140139
def load_file(self, path):
141140
with open(path, 'rb') as f:
142-
try:
143-
data = pickle.load(f)['data']
144-
catch:
145-
data = pd.read_pickle(f)['data']
146-
return data
141+
return pickle.load(f)['data']
142+
147143

148144
class _NetcdfStorage(_DiskStorage):
149145
def storage_path(self, function_identifier):

0 commit comments

Comments
 (0)