From 4f2dda4625995ae1f1b40fa82c0adc82372d3b86 Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Wed, 27 Apr 2022 09:45:48 -0400 Subject: [PATCH] CR comment about `toString`. Value: [0.001 to 0.04] --- .../src/rescript/Distributions/GenericDist/GenericDist.res | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist.res b/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist.res index a83bc8c2..3af431f2 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist.res +++ b/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist.res @@ -305,9 +305,8 @@ module AlgebraicCombination = { runConvolution(toPointSetFn, convOp, t1, t2)->E.R2.fmap(r => DistributionTypes.PointSet( r, )) - | #Divide => "divide"->errString->RequestedStrategyInvalidError->Error - | #Power => "power"->errString->RequestedStrategyInvalidError->Error - | #Logarithm => "logarithm"->errString->RequestedStrategyInvalidError->Error + | (#Divide | #Power | #Logarithm) as op => + op->Operation.Algebraic.toString->errString->RequestedStrategyInvalidError->Error } } | AsMonteCarlo => runMonteCarlo(toSampleSetFn, arithmeticOperation, t1, t2)