Skip to content

Commit

Permalink
WEB: Restore use of cPickle.
Browse files Browse the repository at this point in the history
  • Loading branch information
pconesa committed Feb 8, 2016
1 parent 0bbdc70 commit bbffb3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyworkflow/em/packages/resmap/protocol_resmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import os
import sys
from cPickle import loads, dumps
import cPickle as p
import numpy as np


Expand Down Expand Up @@ -172,14 +172,14 @@ def estimateResolutionStep(self, pValue, minRes, maxRes, stepRes, ang, rampWeigh
""" Call ResMap.py with the appropriate parameters. """
results = self.runResmap(self._getPath())

self.histogramData.set(dumps(results['resHisto']))
self.histogramData.set(p.dumps(results['resHisto']))
plotDict = {'minRes': results['minRes'],
'maxRes': results['maxRes'],
'orig_n': results['orig_n'],
'n': results['n'],
'currentRes': results['currentRes']
}
self.plotData.set(dumps(plotDict))
self.plotData.set(p.dumps(plotDict))
self._store(self.histogramData, self.plotData)

self.savePlots(results)
Expand Down

0 comments on commit bbffb3e

Please sign in to comment.