Refactor tests and project files for improved consistency and clarity

This commit is contained in:
Miha Kralj
2025-12-27 18:09:04 -08:00
parent bf99f3caa9
commit f2487ced04
58 changed files with 863 additions and 276 deletions
+2 -5
View File
@@ -43,13 +43,10 @@ public class ConvIndicator : Indicator, IWatchlistIndicator
try
{
var weights = WeightsInput.Split(',')
.Select(s => double.Parse(s.Trim()))
.Select(s => double.Parse(s.Trim(), System.Globalization.CultureInfo.InvariantCulture))
.ToArray();
if (weights.Length == 0)
throw new ArgumentException("Weights cannot be empty");
_conv = new Conv(weights);
_conv = new Conv(weights.Length == 0 ? [1.0] : weights);
}
catch (FormatException)
{