Add ray shutdown to allow repeated runs in ipython
@@ -98,6 +98,9 @@ class Isofit:
self._init_nonpicklable_objects()
self.io = IO(self.config, self.fm, self.iv, self.rows, self.cols)
+ def __del__(self):
+ ray.shutdown()
+
def _init_nonpicklable_objects(self):
self.fm = ForwardModel(self.config)
