Skip to content

Commit

Permalink
Add low poly for channels <= 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
Am6er committed Apr 25, 2024
1 parent 8c41e35 commit f955c25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BecquerelMonitor/BecquerelMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<MinimumRequiredVersion>2022.07.08.7</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>6</ApplicationRevision>
<ApplicationVersion>2024.04.24.6</ApplicationVersion>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>2024.04.25.1</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
4 changes: 2 additions & 2 deletions BecquerelMonitor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("2024.04.24.6")]
[assembly: AssemblyVersion("2024.04.25.1")]
[assembly: AssemblyProduct("BecquerelMonitor")]
[assembly: AssemblyCopyright("free")]
[assembly: AssemblyTrademark("none")]
[assembly: AssemblyConfiguration("")]
[assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")]
[assembly: AssemblyFileVersion("2024.04.24.6")]
[assembly: AssemblyFileVersion("2024.04.25.1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("free")]
[assembly: CompilationRelaxations(8)]
Expand Down
7 changes: 6 additions & 1 deletion BecquerelMonitor/Utils/SpectrumAriphmetics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ public int FindCentroid(EnergySpectrum energySpectrum, int centroid, int low_bou
}
}

int poly_order = 18;
int poly_order = 16;
if (energySpectrum.NumberOfChannels <= 1024)
{
poly_order = 8;
}

if (high_boundary - low_boundary < poly_order)
{
poly_order = high_boundary - low_boundary;
Expand Down

0 comments on commit f955c25

Please sign in to comment.