Tidied up imports.
This commit is contained in:
parent
a026c8b37a
commit
1d60fa3bd7
@ -1,13 +1,4 @@
|
||||
import sys
|
||||
import os
|
||||
import threading
|
||||
import multiprocessing
|
||||
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
|
||||
|
||||
from src.RSIPI.rsi_client import RSIClient
|
||||
from src.RSIPI.graphing import RSIGraphing
|
||||
|
||||
from .rsi_client import RSIClient
|
||||
|
||||
class RSICommandLineInterface:
|
||||
"""Command-Line Interface for controlling RSI Client."""
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import xml.etree.ElementTree as ET
|
||||
import logging
|
||||
|
||||
class ConfigParser:
|
||||
"""Handles parsing the RSI config file and generating structured send/receive variables."""
|
||||
|
||||
@ -1,14 +1,9 @@
|
||||
import sys
|
||||
import os
|
||||
import socket
|
||||
import time
|
||||
import xml.etree.ElementTree as ET
|
||||
import logging
|
||||
import threading
|
||||
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
|
||||
|
||||
from src.RSIPI.rsi_config import RSIConfig
|
||||
from .rsi_config import RSIConfig
|
||||
|
||||
# ✅ Configure Logging
|
||||
LOGGING_ENABLED = True
|
||||
|
||||
@ -1,10 +1,8 @@
|
||||
import time
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.animation as animation
|
||||
from collections import deque
|
||||
from src.RSIPI.rsi_client import RSIClient
|
||||
from .rsi_client import RSIClient
|
||||
|
||||
class RSIGraphing:
|
||||
"""Handles real-time and CSV-based graphing for RSI analysis with alerts and threshold monitoring."""
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
from src.RSIPI.rsi_client import RSIClient
|
||||
import rsi_api
|
||||
from .rsi_client import RSIClient
|
||||
from time import sleep
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
|
||||
import multiprocessing
|
||||
import socket
|
||||
import time
|
||||
import csv
|
||||
import logging
|
||||
import xml.etree.ElementTree as ET # ✅ FIX: Import ElementTree
|
||||
from .config_parser import ConfigParser
|
||||
from .xml_handler import XMLGenerator
|
||||
|
||||
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
import unittest
|
||||
from time import sleep
|
||||
from rsi_api import RSIAPI
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')))
|
||||
|
||||
|
||||
class TestRSIPI(unittest.TestCase):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user