Skip to content

Commit

Permalink
fixed serialization of lazy KdTrees.fs (compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Feb 20, 2024
1 parent 45e9609 commit c526918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.4.1
- LazyKdTree caches need to be list not array (accidently introduced serialization issue)


### 1.4.0
- KdTree loading now parametrized and allows to create kdtrees

Expand Down
2 changes: 1 addition & 1 deletion src/OPCViewer.Base/KdTrees.fs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ module KdTrees =

Log.stop ()

kdTrees |> save cacheFile b |> ignore
kdTrees |> Array.toList |> save cacheFile b |> ignore

if load then
kdTrees |> HashMap.ofArray
Expand Down

0 comments on commit c526918

Please sign in to comment.