From 3dfaae9249f3315edfa76136796c8fdc0824645f Mon Sep 17 00:00:00 2001 From: mjjm4d Date: Wed, 23 Oct 2024 21:09:59 -0500 Subject: [PATCH] Cleanup some raman files --- .../RamanGraph/DataItem.cs | 13 ++++++++++++ Basestation_Software.Models/RamanGraphType.cs | 21 ------------------- .../Core/Components/RamanGraph.razor | 5 ++--- .../Core/Services/RamanGraphService.cs | 6 ------ Basestation_Software.Web/Program.cs | 1 - 5 files changed, 15 insertions(+), 31 deletions(-) create mode 100644 Basestation_Software.Models/RamanGraph/DataItem.cs delete mode 100644 Basestation_Software.Models/RamanGraphType.cs delete mode 100644 Basestation_Software.Web/Core/Services/RamanGraphService.cs diff --git a/Basestation_Software.Models/RamanGraph/DataItem.cs b/Basestation_Software.Models/RamanGraph/DataItem.cs new file mode 100644 index 0000000..e2c5473 --- /dev/null +++ b/Basestation_Software.Models/RamanGraph/DataItem.cs @@ -0,0 +1,13 @@ +namespace Basestation_Software.Models.RamanGraph; + +public class DataItem +{ + public int Raman_Shift { get; set; } + public double Intensity { get; set; } + + public DataItem() + { + Raman_Shift = 0; + Intensity = 0f; + } +} diff --git a/Basestation_Software.Models/RamanGraphType.cs b/Basestation_Software.Models/RamanGraphType.cs deleted file mode 100644 index 9dcfbcf..0000000 --- a/Basestation_Software.Models/RamanGraphType.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Basestation_Software.Models; -public class RamanGraphType -{ - public class DataItem - { - public int Raman_Shift { get; set; } - public double Intensity { get; set; } - - public DataItem() - { - Raman_Shift = 0; - Intensity = 0f; - } - } -} diff --git a/Basestation_Software.Web/Core/Components/RamanGraph.razor b/Basestation_Software.Web/Core/Components/RamanGraph.razor index 2c29eb7..601903b 100644 --- a/Basestation_Software.Web/Core/Components/RamanGraph.razor +++ b/Basestation_Software.Web/Core/Components/RamanGraph.razor @@ -1,5 +1,5 @@ @inject RoveCommService _RoveCommService -@using static Basestation_Software.Models.RamanGraphType +@using Basestation_Software.Models.RamanGraph
@@ -16,7 +16,6 @@ @code { - DataItem[] ramanGraph = new DataItem[2048]; @@ -63,4 +62,4 @@ await InvokeAsync(StateHasChanged); }); } -} \ No newline at end of file +} diff --git a/Basestation_Software.Web/Core/Services/RamanGraphService.cs b/Basestation_Software.Web/Core/Services/RamanGraphService.cs deleted file mode 100644 index f66a928..0000000 --- a/Basestation_Software.Web/Core/Services/RamanGraphService.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Basestation_Software.Web.Core.Services -{ - public class RamanGraphService{} - - -} diff --git a/Basestation_Software.Web/Program.cs b/Basestation_Software.Web/Program.cs index 23fee68..64254ba 100644 --- a/Basestation_Software.Web/Program.cs +++ b/Basestation_Software.Web/Program.cs @@ -25,7 +25,6 @@ builder.Services.AddHttpClient(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); -builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddHostedService((sp) => sp.GetRequiredService());