Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import multiprocessing as mp
from typing import Dict, List, Optional, Union

from ansys.fluent.core.fluent_connection import _FluentConnection
from ansys.fluent.core.fluent_connection import FluentConnection
from ansys.fluent.core.post_objects.post_object_definitions import (
MonitorDefn,
PlotDefn,
Expand Down Expand Up @@ -38,7 +38,7 @@ def __init__(
target=self.plotter, args=(plotter_pipe,), daemon=True
)
self.plot_process.start()
_FluentConnection._monitor_thread.cbs.append(self.close)
FluentConnection._monitor_thread.cbs.append(self.close)

def plot(self, data):
self.plot_pipe.send(data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import threading
from typing import List, Optional, Union

from ansys.fluent.core.fluent_connection import _FluentConnection
from ansys.fluent.core.fluent_connection import FluentConnection
from ansys.fluent.core.post_objects.post_object_definitions import GraphicsDefn
from ansys.fluent.core.utils.generic import AbstractSingletonMeta, in_notebook
import numpy as np
Expand Down Expand Up @@ -628,8 +628,8 @@ def _open_and_plot_console(self, obj: object, window_id: str) -> None:
self._post_object = obj

if not self._plotter_thread:
if _FluentConnection._monitor_thread:
_FluentConnection._monitor_thread.cbs.append(self._exit)
if FluentConnection._monitor_thread:
FluentConnection._monitor_thread.cbs.append(self._exit)
self._plotter_thread = threading.Thread(target=self._display, args=())
self._plotter_thread.start()

Expand Down