Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions chaco/abstract_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ def __getstate__(self):
del state[key]

return state

def _post_load(self):
self._cache_valid = False
self._range_changed(None, self.range)
5 changes: 0 additions & 5 deletions chaco/array_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,3 @@ def __getstate__(self):
state.pop("_min_index", None)
state.pop("_max_index", None)
return state

def _post_load(self):
super(ArrayDataSource, self)._post_load()
self._cached_bounds = ()
self._cached_mask = None
3 changes: 0 additions & 3 deletions chaco/barplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,6 @@ def _render_icon(self, gc, x, y, width, height):
gc.rect(x+width/4, y+height/4, width/2, height/2)
gc.draw_path(FILL_STROKE)

def _post_load(self):
super(BarPlot, self)._post_load()

#------------------------------------------------------------------------
# Properties
#------------------------------------------------------------------------
Expand Down
7 changes: 0 additions & 7 deletions chaco/base_xy_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,6 @@ def _draw_default_axes(self, gc):
gc.line_to(int(end[0]), int(end[1]))
gc.stroke_path()

def _post_load(self):
super(BaseXYPlot, self)._post_load()
self._update_mappers()
self.invalidate_draw()
self._cache_valid = False
self._screen_cache_valid = False

def _update_subdivision(self):
pass

Expand Down
7 changes: 0 additions & 7 deletions chaco/data_range_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,6 @@ def _sources_changed(self, old, new):
for source in new:
source.observe(self.refresh, "data_changed")

#------------------------------------------------------------------------
# Serialization interface
#------------------------------------------------------------------------

def _post_load(self):
self._sources_changed(None, self.sources)


###### method to calculate bounds for a given 1-dimensional set of data
def calc_bounds(low_set, high_set, mins, maxes, epsilon, tight_bounds,
Expand Down
6 changes: 0 additions & 6 deletions chaco/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,3 @@ def __getstate__(self):
del state[key]

return state

def _post_load(self):
super(PlotGrid, self)._post_load()
self._mapper_changed(None, self.mapper)
self._reset_cache()
self._cache_valid = False
111 changes: 0 additions & 111 deletions chaco/serializable.py

This file was deleted.

24 changes: 0 additions & 24 deletions chaco/tests/serializable_base.py

This file was deleted.

17 changes: 0 additions & 17 deletions chaco/tests/test_arraydatasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,23 +239,6 @@ def test_serialization_state_no_persist(self):
"_max_index"]:
self.assertIn(key, state)

@unittest.skip("I think this is just broken")
def test_serialization_post_load(self):
self.data_source.set_mask(self.mymask)

pickled_data_source = pickle.dumps(self.data_source)
unpickled_data_source = pickle.loads(pickled_data_source)
unpickled_data_source._post_load()

self.assertEqual(unpickled_data_source._cached_bounds, ())
self.assertEqual(unpickled_data_source._cached_mask, None)

assert_array_equal(self.data_source.get_data(),
unpickled_data_source.get_data())

mask = unpickled_data_source.get_data_mask()[1]
assert_array_equal(mask, ones(10))


class PointDataTestCase(unittest.TestCase):
# Since PointData is mostly the same as ScalarData, the key things to
Expand Down
44 changes: 0 additions & 44 deletions chaco/tests/test_serializable.py

This file was deleted.