forked from agentmodels/webppl-agents
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The changes introduced since the fork have removed some globals from the export, so that the visualization doesn't work anymore. Here those are restored, and the new functions that were added are scoped elsewhere, to keep things clean. I also pinned the dependencies to versions that do not require patching. However, one problem remains: the satisfia mdp constructor returns an object that doesn't have all the fields that a world and an mdp usually have in the webppl world. I tried returning somerthing like `_.assign({ new fields }, original_object)`, but when I do that computations fail (In computing `V` the library complains that an element of a vector is negative). We should find out why that is, and return a proper object from `VerySimpleGW`. Right now I went around it by returning also the original `world`, so that the `draw` functions knows what to paint.
- Loading branch information
Showing
19 changed files
with
1,752 additions
and
18,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: "Test" | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v25 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- run: nix-shell --run "npm i && npm run test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
with pkgs; | ||
let | ||
node = nodejs-18_x; | ||
in | ||
mkShell { | ||
name = "env"; | ||
buildInputs = [ | ||
nodePackages.typescript-language-server | ||
python3 | ||
# nodePackages.prettier | ||
# nodePackages.eslint | ||
node | ||
]; | ||
LD_LIBRARY_PATH = lib.makeLibraryPath (with pkgs; [ | ||
libuuid | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.