hashintel / labs Goto Github PK
View Code? Open in Web Editor NEW๐งช Public laboratory for @hashintel experiments
Home Page: https://hash.dev/labs
License: Other
๐งช Public laboratory for @hashintel experiments
Home Page: https://hash.dev/labs
License: Other
If the user sends a "create_agent" message to the engine with an incorrect spec, such as in the below example where position is a string instead of an array of integers
{
"position": "[0,0]"
}
The message is received by the engine but nothing happens. This should either throw an error or a warning
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These branches will be created by Renovate only once you click their checkbox below.
python-slugify
to ^8.0.4yarl
to ^1.9.4askama
to 0.12.1figment
to 0.10.19hashbrown
to 0.14.5onlyerror
to 0.1.4paste
to 1.0.15petgraph
to 0.6.5proc-macro2
to 1.0.86quote
to 1.0.36syn
to 2.0.71thiserror
to 1.0.63time
to 0.3.36serde
Rust crates (serde
, serde_json
)tracing
Rust crates (tracing
, tracing-subscriber
)Swatinem/rust-cache
to v2.7.3actions/setup-python
to v4.8.0github/codeql-action
to v2.25.13taiki-e/install-action
to v2.42.4pydantic
, pydantic_core
)black
to ^23.12.1datamodel-code-generator
to ^0.25.8httpx
to ^0.27.0mypy
to ^1.11.0python
to ^3.12.4ruff
to ^0.5.4clap
to 4.5.9error-stack
to 0.5.0heck
to 0.5.0itertools
to 0.13.0once_cell
to 1.19.0ordered-float
to 3.9.2regex
to 1.10.5reqwest
to 0.12.5similar-asserts
to 1.5.0toml
to 0.8.15url
to 2.5.2uuid
to 1.10.0@redocly/cli
to v1.18.0actions/checkout
to v4actions/setup-python
to v5github/codeql-action
to v3black
to v24setuptools
to v71indexmap
to v2ordered-float
to v4/libs
to nightly-2024-07-15Warning
Renovate failed to look up the following dependencies: Failed to look up npm package @apps/hash-graph
, Failed to look up npm package @local/hash-graph-client-py
, Failed to look up npm package @local/hash-graph-types-py
.
Files affected: libs/hash-graph-client/python/package.json
, libs/hash-graph-sdk/python/package.json
libs/turbine-transformer/Cargo.toml
petgraph 0.6.3
error-stack 0.4.1
funty 3.0.0-rc2
serde_json 1.0.96
ordered-float 3.7.0
paste 1.0.12
hashbrown 0.13.2
libs/turbine/Cargo.toml
error-stack 0.4.1
libs/turbine/bin/cli/Cargo.toml
clap 4.2.5
url 2.3.1
reqwest 0.11.17
serde_json 1.0.96
thiserror 1.0.40
tracing 0.1.37
tracing-subscriber 0.3.17
serde 1.0.160
toml 0.7.3
figment 0.10.8
uuid 1.5.0
libs/turbine/lib/codegen/Cargo.toml
itertools 0.10.5
quote 1.0.26
proc-macro2 1.0.56
reqwest 0.11.16
serde_json 1.0.96
thiserror 1.0.40
serde 1.0.160
serde_regex 1.1.0
petgraph 0.6.3
tracing 0.1.37
ciclo 0.1.0
indexmap 1.9.3
heck 0.4.1
once_cell 1.17.1
regex 1.8.1
syn 2.0.15
drop_bomb 0.1.5
similar-asserts 1.4.2
libs/turbine/lib/skeletor/Cargo.toml
url 2.3.1
reqwest 0.11.18
askama 0.12.0
pathdiff 0.2.1
tracing 0.1.37
serde 1.0.163
serde_json 1.0.96
quote 1.0.26
proc-macro2 1.0.56
syn 2.0.15
libs/turbine/lib/turbine/Cargo.toml
serde 1.0.160
serde_json 1.0.96
time 0.3.20
hashbrown 0.14.0
uuid 1.3.1
onlyerror 0.1.3
.github/actions/setup-rust-ci/action.yml
actions/setup-python v4.7.0@61a6322f88396a6271a6ee3565807d608ecaddd1
.github/workflows/rust.yml
actions/checkout v3.6.0@f43a0e5ff2bd294095638e18286ca9a3d1956744
actions/checkout v3.6.0@f43a0e5ff2bd294095638e18286ca9a3d1956744
Swatinem/rust-cache v2.6.2@e207df5d269b42b69c8bc5101da26f7d31feddb4
taiki-e/install-action v2.17.7@cc5a5c56a296ea597e6ea38f551f25dee8be1225
github/codeql-action v2.21.5@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8
actions/checkout v3.6.0@f43a0e5ff2bd294095638e18286ca9a3d1956744
Swatinem/rust-cache v2.6.2@e207df5d269b42b69c8bc5101da26f7d31feddb4
taiki-e/install-action v2.17.7@cc5a5c56a296ea597e6ea38f551f25dee8be1225
actions/setup-python v4.7.0@61a6322f88396a6271a6ee3565807d608ecaddd1
libs/hash-graph-client/python/package.json
@apps/hash-graph 0.0.0-private
@redocly/cli 1.4.1
libs/hash-graph-sdk/python/package.json
@local/hash-graph-client-py 0.0.0-private
@local/hash-graph-types-py 0.0.0-private
libs/hash-graph-types/python/package.json
libs/hash-graph-client/python/pyproject.toml
libs/hash-graph-sdk/python/pyproject.toml
libs/hash-graph-types/python/pyproject.toml
.github/scripts/rust/requirements.txt
pygit2 == 1.9.2
toml == 0.10.2
libs/hash-graph-client/python/pyproject.toml
python ^3.11
pydantic ^2.4.2
httpx ^0.25.0
yarl ^1.9.2
setuptools ^68.2.2
datamodel-code-generator ^0.22.1
black ^23.10.1
ruff ^0.1.2
mypy ^1.6.1
libs/hash-graph-sdk/python/pyproject.toml
python ^3.11
pydantic ^2.4.2
yarl ^1.9.2
setuptools ^68.2.2
devtools ^0.12.2
black ^23.10.1
ruff ^0.1.2
mypy ^1.6.1
libs/hash-graph-types/python/pyproject.toml
python ^3.11
pydantic ^2.4.2
pydantic_core ^2.10.1
python-slugify ^8.0.1
types-python-slugify ^8.0
setuptools ^68.2.2
black ^23.10.1
ruff ^0.1.2
mypy ^1.6.1
libs/turbine-transformer/rust-toolchain.toml
rust 2023-08-28
libs/turbine/rust-toolchain.toml
rust 2023-08-28
Some 3D models contain extra space in the bottom of their bounding box. This causes them to "float" over the position that they are supposed to be located at.
Certain CSV files succeed during single-run simulation execution in hCore, but fail when used as part of experiments.
Original context can be found in this Discord thread.
From SyncLinear.com | SIM-1
User report: If you set the value of "geo_color" to "green", a warning is thrown in the console
Could not parse color from value '#fac33'
And the color in the geospatial display is set as black. The geo_color property works in general, with values like "red", "black", and "blue" all appropriately setting the geospatial display.
This dashboard has moved. Please see #27
User report: The numpy.random.choice function is failing.
The problem is caused by Pyodide not converting numpy types properly. The numpy.random.choice function returns an numpy.int32 type which gets converted to an empty array for some reason.
Mitigation: Use random.choice or convert the numpy choice to a python int.
Open a model and run the model for many steps, then select pause.
In the Analysis tab, select "define new metric". Then, in the "define new metric" form, select the "FIELD" pull-down.
Since there is no opportunity to select a particular type of agent, I am expecting to see the full list of all fields used for any type of agent. Instead, I only see a list of out-of-the-box default fields (like agent_id, agent_name, behaviors, color, direction, etc.). I cannot define a new metric using the agent fields that exist, as shown in attached screen captures.
Not exactly sure where this ninja_gn_binaries.py
even comes from and why it's needed but it is failing sue to it.
Compiling v8 v0.45.0
error: failed to run custom build command for v8 v0.45.0
Caused by:
process didn't exit successfully: /Users/<>/hash/engine/target/debug/build/v8-1afa013990c9e136/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=.gn
cargo:rerun-if-changed=BUILD.gn
cargo:rerun-if-changed=src/binding.cc
cargo:rerun-if-env-changed=CCACHE
cargo:rerun-if-env-changed=CLANG_BASE_PATH
cargo:rerun-if-env-changed=DENO_TRYBUILD
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-env-changed=GENERATE_COMPDB
cargo:rerun-if-env-changed=GN
cargo:rerun-if-env-changed=GN_ARGS
cargo:rerun-if-env-changed=HOST
cargo:rerun-if-env-changed=NINJA
cargo:rerun-if-env-changed=OUT_DIR
cargo:rerun-if-env-changed=RUSTY_V8_ARCHIVE
cargo:rerun-if-env-changed=RUSTY_V8_MIRROR
cargo:rerun-if-env-changed=SCCACHE
cargo:rerun-if-env-changed=V8_FORCE_DEBUG
cargo:rerun-if-env-changed=V8_FROM_SOURCE
cargo:rustc-link-lib=static=rusty_v8
--- stderr
thread 'main' panicked at 'ninja_gn_binaries.py download failed: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /Users/<>/.cargo/registry/src/github.com-1ecc6299db9ec823/v8-0.45.0/build.rs:274:8
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
cargo run --bin cli -- --project /<directory>/short-squeeze/ single-run --num-steps 5
No response
It's suppsoed to run just fine since it's just a copy of what's already in hCore
1.65.0-nightly (d394408fb 2022-08-07)
aarch64-apple-darwin
nightly-aarch64-apple-darwin
3.8.10
Not using any Python here.
The simulation run normal without errors, however experiment run generate error from step one as follow
"ERROR simulation: Error with 0 steps taken: Simulation error: Simulation (id: 643692c93f4b1a91f8eedf61) failed with error: Unique("Cannot reach language worker, shutting down")
Learn more about common errors in our docs"
This is the public link to the simulation which inlclude one experiment.
The simulation use Python datatime library, re, and numpy.
Many behaviours are written in Python and some in Javascript.
There should be no error , or an error which describe the problem.
https://core.hash.ai/@alaabarazi/actor_stable3/main
Macbook Pro (2019) intel
Macos 13.2.1
Version 111.0.5563.146 (Official Build) (x86_64)
No response
Agents are typically centered on their position
in the xy plane, with the bottom of an agent's bounding box located on the z-coordinate.
However, if height
is 0 but scale
is non-zero, the agent is fully centered on their position in 3d space.
In column chart, the X Axis pull-down menu sometimes offers all the agent fields -- including custom fields, and sometimes only has the out-of-the-box "reserved" fields (like agent_id and pos_x).
Whenever I run a Python model which loop over neighbours as an experiment I get an error. The simulation run normally otherwise (normal run)
For example in the simulation https://core.hash.ai/@alaabarazi/actorexperiment/main
I am getting the error
2023-04-21 11:20:56
ERROR simulation: Error with 5 steps taken: Simulation error: Simulation (id: 644247393f4b1a91f8f31cc1) failed with error: Unique("Error in behavior worker_adding_value.py in the Python runtime:\n<class 'TypeError'>: string indices must be integers")
The cause of this error is the line ( if neighbor["steps_needed1"][task_key] > 0 and neighbor["position"]==state["position"] and state["status"] in act_at_work_place:)
When I comment this line the experiment works.
for neighbor in context.neighbors():
if neighbor["agent_name"] == state["system"]:
if state["task"] :
task_key = state["task"]["prev_delivery_key"]
if neighbor["steps_needed1"][task_key] > 0 and neighbor["position"]==state["position"] and state["status"] in act_at_work_place:
Any clue what causes this. ?
go to. https://core.hash.ai/@alaabarazi/actorexperiment/main
run the experiment ex
wait for some time
An error message pop up
2023-04-21 11:20:56
ERROR simulation: Error with 5 steps taken: Simulation error: Simulation (id: 644247393f4b1a91f8f31cc1) failed with error: Unique("Error in behavior worker_adding_value.py in the Python runtime:\n<class 'TypeError'>: string indices must be integers")
Experiment should run without errors
https://core.hash.ai/@alaabarazi/actorexperiment/main
Macbook Pro 2,6 GHz 6-Core Intel Core i7
Macos 13.3.1 (22E261)
Version 112.0.5615.121 (Official Build) (x86_64)
No response
Setting an agent with negative height causes a weird visualization effect, as if the agent was a box with an open bottom.
Desired behavior: Flip the agent 'upside down'.
The problem occurs in this simulation when I run an experiment. Running the simulation as an experiment delete some of the agents and behaviours and thus wrong results .
The normal run (200 steps) should look like this
https://user-images.githubusercontent.com/7549404/232717172-dce44228-3383-44a0-bcb1-40fb71b9c73a.mov
The balls (workers) move to the blue grids (walls). The simulation also has black squares agents (external walls) and some other agents.
The video below show the run from the experiment (200 steps)
https://user-images.githubusercontent.com/7549404/232717124-1f7e7251-d5cf-4b68-8643-440179388ca5.mov
With the following issues :
compare this when the normal run of the simulation
Experiment should not delete some agents and their behaviours. The run from experiment should look quite similar to the normal run of the simulation.
https://core.hash.ai/@alaabarazi/actorexperiment/main
Macos pro 2019
13.2.1 (22D68)
Version 111.0.5563.146 (Official Build) (x86_64)
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.