Explorar el Código

Tried to fix bokeh issue, but it appears to be impossible

rparedis hace 4 años
padre
commit
10ca9efb3e
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      src/CBD/realtime/plotting.py

+ 5 - 2
src/CBD/realtime/plotting.py

@@ -59,7 +59,8 @@ class Backend:
 			|
 			
 		Attention:
-			This backend is still in active development. Some features may not work as expected.
+			Because of how Bokeh works, it is currently impossible to capture premature
+			close events on a system. The plots will always remain active once started.
 		"""
 
 	if _SNS_FOUND:
@@ -75,6 +76,7 @@ class Backend:
 		"""
 		return value in [getattr(Backend, x) for x in dir(Backend) if not x.startswith("_") and \
 		                                                                not callable(getattr(Backend, x))]
+
 	@staticmethod
 	def compare(name, value):
 		"""
@@ -286,6 +288,7 @@ class PlotHandler:
 			This function is only used in the backend to prevent double
 			closing of the plots.
 		"""
+		print("closed")
 		if self.__opened:
 			self.__opened = False
 			self.stop()
@@ -877,4 +880,4 @@ def sea():
 
 
 if __name__ == '__main__':
-	sea()
+	bkh()