fix(frama): rewire Python export to use H/L arrays instead of single source

This commit is contained in:
Miha Kralj
2026-03-02 15:56:12 -08:00
parent fbdc9172cc
commit c23fbbd99f
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -575,13 +575,13 @@ public static unsafe partial class Exports
}
[UnmanagedCallersOnly(EntryPoint = "qtl_frama")]
public static int QtlFrama(double* source, double* output, int n, int period)
public static int QtlFrama(double* high, double* low, double* output, int n, int period)
{
if (source == null || output == null) return StatusCodes.QTL_ERR_NULL_PTR;
if (high == null || low == null || output == null) return StatusCodes.QTL_ERR_NULL_PTR;
if (n <= 0) return StatusCodes.QTL_ERR_INVALID_LENGTH;
try
{
Frama.Batch(Src(source, n), Dst(output, n), period);
Frama.Batch(Src(high, n), Src(low, n), period, Dst(output, n));
return StatusCodes.QTL_OK;
}
catch { return StatusCodes.QTL_ERR_INTERNAL; }