Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:explorable-viz/fluid into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephBond committed Oct 19, 2023
2 parents 91dd1fd + f2b27a9 commit 5fe7f45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fluid/lib/dtw.fld
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let nextIndices n m window =
j <- [max 1 (i - window) .. min m (i + window)]];

let costMatrixInit rows cols window =
[| let initV = if or (and (n == 1) (m == 1)) (and (abs n m <= window) (not (or (n == 1) (m == 1))))
[| let initV = if ((n == 1) `and` (m == 1)) `or` ((abs n m <= window) `and` not ((n == 1) `or` (m == 1)))
then FNum 0
else Infty
in initV | (n, m) in (rows, cols) |];
Expand All @@ -19,7 +19,7 @@ let minAndPrev (i, j) im1 jm1 ijm1 =

let extractPath indmatrix (i, j) =
let traverser (n, m) matrix accum =
if and (n == 1) (m == 1)
if (n == 1) `and` (m == 1)
then accum
else
traverser (matrix!(n, m)) matrix ((n - 1, m - 1) : accum)
Expand Down
9 changes: 0 additions & 9 deletions src/Ann.purs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Module.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Prelude

import Affjax.ResponseFormat (string)
import Affjax.Web (defaultRequest, printError, request)
import Ann (Raw)
import Bindings (Var, (↦))
import Control.Monad.Error.Class (liftEither, throwError)
import Control.Monad.Except (class MonadError)
Expand All @@ -22,6 +21,7 @@ import Expr (ProgCxt(..))
import Graph (empty) as G
import Graph.GraphImpl (GraphImpl)
import Graph.GraphWriter (alloc, runWithGraphAllocT)
import Lattice (Raw)
import Parse (module_, program) as P
import Parsing (runParser)
import Primitive.Defs (primitives)
Expand Down
2 changes: 1 addition & 1 deletion test/Util.purs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type TestConfig =
type AffError m a = MonadAff m => MonadError Error m => m a

logging :: Boolean
logging = true
logging = false

test forall m. File -> ProgCxt Unit -> TestConfig -> (Int × Boolean) -> AffError m BenchRow
test file progCxt tconfig (n × is_bench) = do
Expand Down

0 comments on commit 5fe7f45

Please sign in to comment.