Beispiel #1
0
 def __setattr__(self, name, value):
     import functions as func
     if self.do_cache and name.endswith("_arr") and isinstance(
             value, N.ndarray):
         func.store_map(self, name, value)
     else:
         super(Image, self).__setattr__(name, value)
Beispiel #2
0
 def put_map(self, map_name, map_data):
     """Stores requested map."""
     import functions as func
     if self.do_cache:
         func.store_map(self, map_name, map_data)
     else:
         setattr(self, map_name, map_data)
Beispiel #3
0
 def put_map(self, map_name, map_data):
     """Stores requested map."""
     import functions as func
     if self.do_cache:
         func.store_map(self, map_name, map_data)
     else:
         setattr(self, map_name, map_data)
Beispiel #4
0
 def __setattr__(self, name, value):
     import functions as func
     if self.do_cache and name.endswith("_arr") and isinstance(value, N.ndarray):
         func.store_map(self, name, value)
     else:
         super(Image, self).__setattr__(name, value)