private void ReceiveData()
 {
     receiveSocket           = new ZMQCommunicatorPython();
     receiveSocket.TimeLimit = 1200;
     receiveSocket.option    = ThreadCommunicator.CommunicatorOption.RECEIVE_DATA;
     receiveSocket.StartThread();
     receiveSocketON = true;
     UnityEngine.Debug.Log("ReceiveSocket ON");
     UIManager.instance.ChangeStatusText("Waiting for inference data");
 }
 private void SendData()
 {
     if (receiveSocketON == false)
     {
         CloudData data = CloudUpdater.instance.LoadCurrentStatus();
         if (data.globalMetaData.SelectedPointsList.Count > 0)
         {
             StartTime            = DateTime.Now;
             sendSocket           = new ZMQCommunicatorPython();
             sendSocket.TimeLimit = defaulyTimeLimit;
             UnityEngine.Debug.Log("Preparing data to send");
             List <float[]> list = PrepareData();
             UnityEngine.Debug.Log("Data prepared");
             sendSocket.dataList = list;
             sendSocket.option   = ThreadCommunicator.CommunicatorOption.SEND_DATA;
             sendSocket.StartThread();
             sendSocketON = true;
             UIManager.instance.ChangeStatusText("Sending selection data through ZMQ");
             UnityEngine.Debug.Log("SENDSOCKET ON");
         }
     }
 }