diff --git a/Modules/data_collector.py b/Data/Modules/data_collector.py similarity index 100% rename from Modules/data_collector.py rename to Data/Modules/data_collector.py diff --git a/Modules/data_manager.py b/Data/Modules/data_manager.py similarity index 100% rename from Modules/data_manager.py rename to Data/Modules/data_manager.py diff --git a/Nodes/Experimental/blueprint_node.py b/Data/Nodes/Experimental/blueprint_node.py similarity index 100% rename from Nodes/Experimental/blueprint_node.py rename to Data/Nodes/Experimental/blueprint_node.py diff --git a/Nodes/Flyff/Resources/bars_template.png b/Data/Nodes/Flyff/Resources/bars_template.png similarity index 100% rename from Nodes/Flyff/Resources/bars_template.png rename to Data/Nodes/Flyff/Resources/bars_template.png diff --git a/Nodes/Flyff/flyff_EXP_current.py b/Data/Nodes/Flyff/flyff_EXP_current.py similarity index 100% rename from Nodes/Flyff/flyff_EXP_current.py rename to Data/Nodes/Flyff/flyff_EXP_current.py diff --git a/Nodes/Flyff/flyff_FP_current.py b/Data/Nodes/Flyff/flyff_FP_current.py similarity index 100% rename from Nodes/Flyff/flyff_FP_current.py rename to Data/Nodes/Flyff/flyff_FP_current.py diff --git a/Nodes/Flyff/flyff_FP_total.py b/Data/Nodes/Flyff/flyff_FP_total.py similarity index 100% rename from Nodes/Flyff/flyff_FP_total.py rename to Data/Nodes/Flyff/flyff_FP_total.py diff --git a/Nodes/Flyff/flyff_HP_current.py b/Data/Nodes/Flyff/flyff_HP_current.py similarity index 100% rename from Nodes/Flyff/flyff_HP_current.py rename to Data/Nodes/Flyff/flyff_HP_current.py diff --git a/Nodes/Flyff/flyff_HP_total.py b/Data/Nodes/Flyff/flyff_HP_total.py similarity index 100% rename from Nodes/Flyff/flyff_HP_total.py rename to Data/Nodes/Flyff/flyff_HP_total.py diff --git a/Nodes/Flyff/flyff_MP_current.py b/Data/Nodes/Flyff/flyff_MP_current.py similarity index 100% rename from Nodes/Flyff/flyff_MP_current.py rename to Data/Nodes/Flyff/flyff_MP_current.py diff --git a/Nodes/Flyff/flyff_MP_total.py b/Data/Nodes/Flyff/flyff_MP_total.py similarity index 100% rename from Nodes/Flyff/flyff_MP_total.py rename to Data/Nodes/Flyff/flyff_MP_total.py diff --git a/Nodes/Flyff/flyff_character_status_node.py b/Data/Nodes/Flyff/flyff_character_status_node.py similarity index 100% rename from Nodes/Flyff/flyff_character_status_node.py rename to Data/Nodes/Flyff/flyff_character_status_node.py diff --git a/Nodes/Flyff/flyff_leveling_predictor_node.py b/Data/Nodes/Flyff/flyff_leveling_predictor_node.py similarity index 100% rename from Nodes/Flyff/flyff_leveling_predictor_node.py rename to Data/Nodes/Flyff/flyff_leveling_predictor_node.py diff --git a/Nodes/Flyff/flyff_low_health_alert_node.py b/Data/Nodes/Flyff/flyff_low_health_alert_node.py similarity index 99% rename from Nodes/Flyff/flyff_low_health_alert_node.py rename to Data/Nodes/Flyff/flyff_low_health_alert_node.py index 699e1bd..f1006a7 100644 --- a/Nodes/Flyff/flyff_low_health_alert_node.py +++ b/Data/Nodes/Flyff/flyff_low_health_alert_node.py @@ -16,6 +16,7 @@ try: import winsound HAS_WINSOUND = True except ImportError: + winsound = None HAS_WINSOUND = False class OverlayCanvas(QtWidgets.QWidget): diff --git a/Nodes/General Purpose/array_node.py b/Data/Nodes/General Purpose/array_node.py similarity index 100% rename from Nodes/General Purpose/array_node.py rename to Data/Nodes/General Purpose/array_node.py diff --git a/Nodes/General Purpose/comparison_node.py b/Data/Nodes/General Purpose/comparison_node.py similarity index 100% rename from Nodes/General Purpose/comparison_node.py rename to Data/Nodes/General Purpose/comparison_node.py diff --git a/Nodes/General Purpose/data_node.py b/Data/Nodes/General Purpose/data_node.py similarity index 100% rename from Nodes/General Purpose/data_node.py rename to Data/Nodes/General Purpose/data_node.py diff --git a/Nodes/General Purpose/identification_overlay.py b/Data/Nodes/General Purpose/identification_overlay.py similarity index 100% rename from Nodes/General Purpose/identification_overlay.py rename to Data/Nodes/General Purpose/identification_overlay.py diff --git a/Nodes/General Purpose/math_operation_node.py b/Data/Nodes/General Purpose/math_operation_node.py similarity index 100% rename from Nodes/General Purpose/math_operation_node.py rename to Data/Nodes/General Purpose/math_operation_node.py diff --git a/Nodes/Organization/backdrop_node.py b/Data/Nodes/Organization/backdrop_node.py similarity index 100% rename from Nodes/Organization/backdrop_node.py rename to Data/Nodes/Organization/backdrop_node.py diff --git a/Nodes/Reporting/Export_to_CSV.py b/Data/Nodes/Reporting/Export_to_CSV.py similarity index 100% rename from Nodes/Reporting/Export_to_CSV.py rename to Data/Nodes/Reporting/Export_to_CSV.py diff --git a/Nodes/Reporting/Export_to_Image.py b/Data/Nodes/Reporting/Export_to_Image.py similarity index 100% rename from Nodes/Reporting/Export_to_Image.py rename to Data/Nodes/Reporting/Export_to_Image.py diff --git a/Nodes/__init__.py b/Data/Nodes/__init__.py similarity index 100% rename from Nodes/__init__.py rename to Data/Nodes/__init__.py diff --git a/Workflows/Flyff/Flyff - Low Health Alert.json b/Data/Workflows/Flyff/Flyff - Low Health Alert.json similarity index 100% rename from Workflows/Flyff/Flyff - Low Health Alert.json rename to Data/Workflows/Flyff/Flyff - Low Health Alert.json diff --git a/Workflows/Flyff/Flyff EXP Predictor.json b/Data/Workflows/Flyff/Flyff EXP Predictor.json similarity index 100% rename from Workflows/Flyff/Flyff EXP Predictor.json rename to Data/Workflows/Flyff/Flyff EXP Predictor.json diff --git a/Workflows/Testing/Basic_Data_Node_Connection.json b/Data/Workflows/Testing/Basic_Data_Node_Connection.json similarity index 100% rename from Workflows/Testing/Basic_Data_Node_Connection.json rename to Data/Workflows/Testing/Basic_Data_Node_Connection.json diff --git a/Workflows/Testing/Identification_Overlay.json b/Data/Workflows/Testing/Identification_Overlay.json similarity index 100% rename from Workflows/Testing/Identification_Overlay.json rename to Data/Workflows/Testing/Identification_Overlay.json diff --git a/borealis.py b/Data/borealis.py similarity index 100% rename from borealis.py rename to Data/borealis.py diff --git a/Experiments/flowpipe.py b/Experiments/flowpipe.py new file mode 100644 index 0000000..47aedaf --- /dev/null +++ b/Experiments/flowpipe.py @@ -0,0 +1,80 @@ +from flask import Flask, jsonify +from flowpipe.node import Node +from flowpipe.graph import Graph +from flowpipe.plug import InputPlug, OutputPlug + +app = Flask(__name__) + +# =========================== +# Define Custom Nodes +# =========================== + +class MultiplyNode(Node): + """Multiplies an input value by a factor""" + factor = InputPlug() + value = InputPlug() + result = OutputPlug() + + def compute(self): + self.result.value = self.value.value * self.factor.value + + +class AddNode(Node): + """Adds two input values""" + input1 = InputPlug() + input2 = InputPlug() + sum = OutputPlug() + + def compute(self): + self.sum.value = self.input1.value + self.input2.value + + +class OutputNode(Node): + """Outputs the final result""" + input_value = InputPlug() + output_value = OutputPlug() + + def compute(self): + self.output_value.value = self.input_value.value + + +# =========================== +# Define Graph Workflow +# =========================== + +def create_workflow(): + """Creates a sample workflow using nodes""" + graph = Graph(name="Sample Workflow") + + # Create nodes + multiply = MultiplyNode(name="Multiplier", graph=graph) + add = AddNode(name="Adder", graph=graph) + output = OutputNode(name="Output", graph=graph) + + # Connect nodes + multiply.result.connect(add.input1) # Multiply output -> Add input1 + add.sum.connect(output.input_value) # Add output -> Output node + + # Set static input values + multiply.factor.value = 2 + multiply.value.value = 5 # 5 * 2 = 10 + add.input2.value = 3 # 10 + 3 = 13 + + return graph + + +@app.route('/run-workflow', methods=['GET']) +def run_workflow(): + """Runs the defined node-based workflow""" + graph = create_workflow() + graph.evaluate() # Execute the graph + + # Extract the final result from the output node + output_node = graph.nodes["Output"] + result = output_node.output_value.value + + return jsonify({"workflow_result": result}) + + +if __name__ == '__main__': + app.run(debug=True) diff --git a/Installation Requirements.txt b/Installation Requirements.txt deleted file mode 100644 index 94ef1d6..0000000 --- a/Installation Requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -We need to run the following commands to install the prerequisites for the project. - - -This command is used to install pytorch and torchvision for the purposes of GPU-accelerated vision tasks. -pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 diff --git a/Modules/__pycache__/data_collector.cpython-312.pyc b/Modules/__pycache__/data_collector.cpython-312.pyc deleted file mode 100644 index 09dbaf9..0000000 Binary files a/Modules/__pycache__/data_collector.cpython-312.pyc and /dev/null differ diff --git a/Modules/__pycache__/data_manager.cpython-312.pyc b/Modules/__pycache__/data_manager.cpython-312.pyc deleted file mode 100644 index b4a2b38..0000000 Binary files a/Modules/__pycache__/data_manager.cpython-312.pyc and /dev/null differ diff --git a/Modules/__pycache__/graph_gradient_style.cpython-312.pyc b/Modules/__pycache__/graph_gradient_style.cpython-312.pyc deleted file mode 100644 index a04d47a..0000000 Binary files a/Modules/__pycache__/graph_gradient_style.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Experimental/__pycache__/blueprint_node.cpython-312.pyc b/Nodes/Experimental/__pycache__/blueprint_node.cpython-312.pyc deleted file mode 100644 index 346c401..0000000 Binary files a/Nodes/Experimental/__pycache__/blueprint_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_EXP_current.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_EXP_current.cpython-312.pyc deleted file mode 100644 index 118f525..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_EXP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_FP_current.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_FP_current.cpython-312.pyc deleted file mode 100644 index 01a998e..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_FP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_FP_total.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_FP_total.cpython-312.pyc deleted file mode 100644 index 8f157eb..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_FP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_HP_current.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_HP_current.cpython-312.pyc deleted file mode 100644 index c81788a..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_HP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_HP_total.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_HP_total.cpython-312.pyc deleted file mode 100644 index 4c3b6e7..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_HP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_MP_current.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_MP_current.cpython-312.pyc deleted file mode 100644 index 347d4ce..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_MP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_MP_total.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_MP_total.cpython-312.pyc deleted file mode 100644 index 815f1a6..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_MP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_character_status_node.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_character_status_node.cpython-312.pyc deleted file mode 100644 index a694d0a..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_character_status_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_leveling_predictor_node.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_leveling_predictor_node.cpython-312.pyc deleted file mode 100644 index a75da59..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_leveling_predictor_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/flyff_low_health_alert_node.cpython-312.pyc b/Nodes/Flyff/__pycache__/flyff_low_health_alert_node.cpython-312.pyc deleted file mode 100644 index 4439490..0000000 Binary files a/Nodes/Flyff/__pycache__/flyff_low_health_alert_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Flyff/__pycache__/identification_overlay.cpython-312.pyc b/Nodes/Flyff/__pycache__/identification_overlay.cpython-312.pyc deleted file mode 100644 index 0498144..0000000 Binary files a/Nodes/Flyff/__pycache__/identification_overlay.cpython-312.pyc and /dev/null differ diff --git a/Nodes/General Purpose/__pycache__/array_node.cpython-312.pyc b/Nodes/General Purpose/__pycache__/array_node.cpython-312.pyc deleted file mode 100644 index daf5a70..0000000 Binary files a/Nodes/General Purpose/__pycache__/array_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/General Purpose/__pycache__/comparison_node.cpython-312.pyc b/Nodes/General Purpose/__pycache__/comparison_node.cpython-312.pyc deleted file mode 100644 index bf87305..0000000 Binary files a/Nodes/General Purpose/__pycache__/comparison_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/General Purpose/__pycache__/data_node.cpython-312.pyc b/Nodes/General Purpose/__pycache__/data_node.cpython-312.pyc deleted file mode 100644 index 2c10579..0000000 Binary files a/Nodes/General Purpose/__pycache__/data_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/General Purpose/__pycache__/identification_overlay.cpython-312.pyc b/Nodes/General Purpose/__pycache__/identification_overlay.cpython-312.pyc deleted file mode 100644 index ec92706..0000000 Binary files a/Nodes/General Purpose/__pycache__/identification_overlay.cpython-312.pyc and /dev/null differ diff --git a/Nodes/General Purpose/__pycache__/math_operation_node.cpython-312.pyc b/Nodes/General Purpose/__pycache__/math_operation_node.cpython-312.pyc deleted file mode 100644 index 7b71fb8..0000000 Binary files a/Nodes/General Purpose/__pycache__/math_operation_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/Organization/__pycache__/backdrop_node.cpython-312.pyc b/Nodes/Organization/__pycache__/backdrop_node.cpython-312.pyc deleted file mode 100644 index 6280241..0000000 Binary files a/Nodes/Organization/__pycache__/backdrop_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/__init__.cpython-312.pyc b/Nodes/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index a4bdc8d..0000000 Binary files a/Nodes/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/array_node.cpython-312.pyc b/Nodes/__pycache__/array_node.cpython-312.pyc deleted file mode 100644 index af5df88..0000000 Binary files a/Nodes/__pycache__/array_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/backdrop_node.cpython-312.pyc b/Nodes/__pycache__/backdrop_node.cpython-312.pyc deleted file mode 100644 index 7423d07..0000000 Binary files a/Nodes/__pycache__/backdrop_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/basic_nodes.cpython-312.pyc b/Nodes/__pycache__/basic_nodes.cpython-312.pyc deleted file mode 100644 index 8b10dfa..0000000 Binary files a/Nodes/__pycache__/basic_nodes.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/blueprint_node.cpython-312.pyc b/Nodes/__pycache__/blueprint_node.cpython-312.pyc deleted file mode 100644 index 6a2ea35..0000000 Binary files a/Nodes/__pycache__/blueprint_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/comparison_node.cpython-312.pyc b/Nodes/__pycache__/comparison_node.cpython-312.pyc deleted file mode 100644 index d2429cc..0000000 Binary files a/Nodes/__pycache__/comparison_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/data_node.cpython-312.pyc b/Nodes/__pycache__/data_node.cpython-312.pyc deleted file mode 100644 index 29c8379..0000000 Binary files a/Nodes/__pycache__/data_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_EXP_current.cpython-312.pyc b/Nodes/__pycache__/flyff_EXP_current.cpython-312.pyc deleted file mode 100644 index 7e418f8..0000000 Binary files a/Nodes/__pycache__/flyff_EXP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_FP_current.cpython-312.pyc b/Nodes/__pycache__/flyff_FP_current.cpython-312.pyc deleted file mode 100644 index 1a87d48..0000000 Binary files a/Nodes/__pycache__/flyff_FP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_FP_total.cpython-312.pyc b/Nodes/__pycache__/flyff_FP_total.cpython-312.pyc deleted file mode 100644 index 0a32247..0000000 Binary files a/Nodes/__pycache__/flyff_FP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_HP_current.cpython-312.pyc b/Nodes/__pycache__/flyff_HP_current.cpython-312.pyc deleted file mode 100644 index e1b1f39..0000000 Binary files a/Nodes/__pycache__/flyff_HP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_HP_total.cpython-312.pyc b/Nodes/__pycache__/flyff_HP_total.cpython-312.pyc deleted file mode 100644 index f3fd74e..0000000 Binary files a/Nodes/__pycache__/flyff_HP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_MP_current.cpython-312.pyc b/Nodes/__pycache__/flyff_MP_current.cpython-312.pyc deleted file mode 100644 index b7ecc9f..0000000 Binary files a/Nodes/__pycache__/flyff_MP_current.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_MP_total.cpython-312.pyc b/Nodes/__pycache__/flyff_MP_total.cpython-312.pyc deleted file mode 100644 index 14fdfb4..0000000 Binary files a/Nodes/__pycache__/flyff_MP_total.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_character_status_node.cpython-312.pyc b/Nodes/__pycache__/flyff_character_status_node.cpython-312.pyc deleted file mode 100644 index 379ae78..0000000 Binary files a/Nodes/__pycache__/flyff_character_status_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/flyff_low_health_alert_node.cpython-312.pyc b/Nodes/__pycache__/flyff_low_health_alert_node.cpython-312.pyc deleted file mode 100644 index be1aa9a..0000000 Binary files a/Nodes/__pycache__/flyff_low_health_alert_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/group_node.cpython-312.pyc b/Nodes/__pycache__/group_node.cpython-312.pyc deleted file mode 100644 index 236137e..0000000 Binary files a/Nodes/__pycache__/group_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/math_operation_node.cpython-312.pyc b/Nodes/__pycache__/math_operation_node.cpython-312.pyc deleted file mode 100644 index 50d15b8..0000000 Binary files a/Nodes/__pycache__/math_operation_node.cpython-312.pyc and /dev/null differ diff --git a/Nodes/__pycache__/widget_node.cpython-312.pyc b/Nodes/__pycache__/widget_node.cpython-312.pyc deleted file mode 100644 index 4f511ec..0000000 Binary files a/Nodes/__pycache__/widget_node.cpython-312.pyc and /dev/null differ diff --git a/Start_Linux.sh b/Start_Linux.sh new file mode 100644 index 0000000..e4265b3 --- /dev/null +++ b/Start_Linux.sh @@ -0,0 +1,112 @@ +#!/bin/bash +# +# Start_Linux.sh +# ----------------------------------------------- +# Bootstrap Borealis Virtual Python Environment +# Usage: chmod +x Start_Linux.sh && ./Start_Linux.sh +# + +: ' +--------------------------------------------------- +SECTION 1: Script Initialization & Path Definitions +--------------------------------------------------- +This section defines all necessary paths and variables to be used +throughout the script, ensuring clarity and maintainability. +' + +# Define paths +venvPath="Borealis-Workflow-Automation-Tool" +dataSource="Data" +dataDestination="$venvPath/Borealis" + + +: ' +--------------------------------------------------- +SECTION 2: Virtual Environment Creation +--------------------------------------------------- +In this section, we check if the virtual environment already exists +by verifying the presence of the "activate" script. If it doesn’t +exist, we create it. +' + +if [ ! -f "$venvPath/bin/activate" ]; then + echo "Creating virtual environment '$venvPath'..." + python3 -m venv "$venvPath" +else + echo "Virtual environment '$venvPath' already exists." +fi + + +: ' +--------------------------------------------------- +SECTION 3: Copy Data Folder +--------------------------------------------------- +If the "Data" folder is present, we remove any previously copied data +in the virtual environment’s "Borealis" directory, create a new +"Borealis" folder, and then copy the "Data" folder into it. +' + +if [ -d "$dataSource" ]; then + echo "Copying Data folder into virtual environment..." + + # Remove old data if it exists + if [ -d "$dataDestination" ]; then + rm -rf "$dataDestination" + fi + + # Create the Borealis directory inside the virtual environment + mkdir -p "$dataDestination" + + # Copy Data into the virtual environment under Borealis + cp -r "$dataSource/"* "$dataDestination/" +else + echo "Warning: Data folder not found, skipping copy." +fi + + +: ' +--------------------------------------------------- +SECTION 4: Activate Environment & Install Dependencies +--------------------------------------------------- +This section activates the newly created (or existing) virtual +environment and installs required dependencies based on the +"requirements.txt" file if it exists. +' + +echo "Activating virtual environment..." +source "$venvPath/bin/activate" + +if [ -f "requirements.txt" ]; then + echo "Installing dependencies..." + pip install -r requirements.txt +else + echo "No requirements.txt found, skipping installation." +fi + + +: ' +--------------------------------------------------- +SECTION 5: Run Main Script +--------------------------------------------------- +Run the main Python script from within the copied Data folder +inside the virtual environment. +' + +if [ -f "$dataDestination/borealis.py" ]; then + echo "Starting Borealis Workflow Automation Tool..." + python "$dataDestination/borealis.py" +else + echo "borealis.py not found in $dataDestination. Skipping execution." +fi + + +: ' +--------------------------------------------------- +SECTION 6: Deactivate Environment +--------------------------------------------------- +After the main script completes execution, the virtual environment +is deactivated. +' + +echo "Deactivating virtual environment..." +deactivate diff --git a/Start_Windows.ps1 b/Start_Windows.ps1 new file mode 100644 index 0000000..e55582f --- /dev/null +++ b/Start_Windows.ps1 @@ -0,0 +1,50 @@ +# Bootstrap Borealis Virtual Python Environment +# Run Script: "Set-ExecutionPolicy Unrestricted -Scope Process .\Start_Windows.ps1" + +# Define paths +$venvPath = "Borealis-Workflow-Automation-Tool" +$dataSource = "Data" +$dataDestination = "$venvPath\Borealis" + +# Check if virtual environment exists +if (!(Test-Path "$venvPath\Scripts\Activate")) { + Write-Output "Creating virtual environment '$venvPath'..." + python -m venv $venvPath +} + +# Ensure the Data folder exists before copying +if (Test-Path $dataSource) { + Write-Output "Copying Data folder into virtual environment..." + + # Remove old data if it exists + if (Test-Path $dataDestination) { + Remove-Item -Recurse -Force $dataDestination + } + + # Create the Borealis directory inside the virtual environment + New-Item -Path $dataDestination -ItemType Directory -Force | Out-Null + + # Copy Data into the virtual environment under Borealis + Copy-Item -Path "$dataSource\*" -Destination $dataDestination -Recurse +} else { + Write-Output "Warning: Data folder not found, skipping copy." +} + +# Activate virtual environment +Write-Output "Activating virtual environment..." +. "$venvPath\Scripts\Activate" + +# Install dependencies +if (Test-Path "requirements.txt") { + Write-Output "Installing dependencies..." + pip install -r requirements.txt +} else { + Write-Output "No requirements.txt found, skipping installation." +} + +# Run the main script from inside the copied Data folder +Write-Output "Starting Borealis Workflow Automation Tool..." +python "$dataDestination\borealis.py" + +# Deactivate after execution +deactivate \ No newline at end of file diff --git a/__pycache__/borealis_graph_style.cpython-312.pyc b/__pycache__/borealis_graph_style.cpython-312.pyc deleted file mode 100644 index 19eece1..0000000 Binary files a/__pycache__/borealis_graph_style.cpython-312.pyc and /dev/null differ diff --git a/__pycache__/monkey_patches.cpython-312.pyc b/__pycache__/monkey_patches.cpython-312.pyc deleted file mode 100644 index 2b29442..0000000 Binary files a/__pycache__/monkey_patches.cpython-312.pyc and /dev/null differ diff --git a/__pycache__/myscene.cpython-312.pyc b/__pycache__/myscene.cpython-312.pyc deleted file mode 100644 index afa64ae..0000000 Binary files a/__pycache__/myscene.cpython-312.pyc and /dev/null differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f0b52a9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +# PyTorch and related deep learning libraries (GPU Supported Functionality) +torch --index-url https://download.pytorch.org/whl/cu121 +torchvision --index-url https://download.pytorch.org/whl/cu121 +torchaudio --index-url https://download.pytorch.org/whl/cu121 + +# Flask for API handling +Flask +requests + +# GUI-related dependencies (Qt for GUI components) +Qt.py +qtpy +OdenGraphQt +PyQt5 + +# Computer Vision & OCR dependencies +numpy # Numerical operations +opencv-python # Computer vision processing +pytesseract # OCR engine +easyocr # Deep-learning-based OCR +Pillow # Image processing \ No newline at end of file