instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
GNS3__gns3-server__2637
GNS3/gns3-server
2,637
defect
69eafda777824a004d699366af2e4b369c7a5fd0
afeb6a3196722f8e2c441db17eda1d78b25ce970
Minor improvements
Not that big of a push, just some stuff i noticed :smile: - Fixed an issue where large images uploaded would still cause an error. - I've made some small improvements to some logic, will propperly not be noticeble at all. - Created a new node_types.py file for centralizing node types. - Made some for loops a litte...
diff --git a/gns3server/api/routes/controller/images.py b/gns3server/api/routes/controller/images.py index 9a43152ed..26b9a2ed2 100644 --- a/gns3server/api/routes/controller/images.py +++ b/gns3server/api/routes/controller/images.py @@ -154,6 +154,17 @@ async def upload_image( if os.path.commonprefix([base_images_...
2
1
1
[{"id": "G0", "claim": "Why was get_image_by_checksum changed from one_or_none() to first(), which silently takes the first row instead of raising when several images match the checksum?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Opening an exis...
null
GNS3__gns3-server__2645
GNS3/gns3-server
2,645
defect
77bea352985df7d1cc9ab3c1c62159d06e6fd4d1
83558d4d9fda0dae88c403c2a070f135b97b4f7c
Enhancement: Re-write current Telnet server implementation using telnetlib3 library
This pull request is a second attempt to rewrite the existing telnet server code used in GNS3 server using the telnetlib3 library based on the opened issue here https://github.com/GNS3/gns3-server/issues/2289. This applies only to the 3.x branch code of the GNS3 server. I have upgraded the telnelib3 version to the l...
diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index e09111de4..d67b96bef 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -436,7 +436,7 @@ async def _wrap_telnet_proxy(self, internal_port, external_port): echo=True ) # ...
4
3
1
[{"id": "G0", "claim": "The broadcast task started in start() reads from the upstream reader even when no clients are connected, so upstream output is consumed and effectively dropped for late-connecting clients; the reviewer asks to start the loop only once at least one client is connected or to buffer recent upstream...
null
GNS3__gns3-server__2663
GNS3/gns3-server
2,663
defect
9290b37292c9533bd4937f4cfefb3c97b21c1b50
104f56cb5573e612980ad94f522ff1a48eb74871
Enhancement: Refresh projects list without restarting the GNS3 server
Implemented projects list page refresh without restarting GNS3 server when projects are uploaded manually into the projects folder without using the Import project option which are detailed in this Github issue https://github.com/GNS3/gns3-server/issues/1530 Added also a Refresh list button to the GNS3 web-ui to com...
diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 26435b6d8..a7fe6955d 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -22,12 +22,16 @@ import asyncio import random import json +import threading try: import importlib_resources ...
4
3
0
[{"id": "G0", "claim": "Scheduling the watchdog recursively over the projects path may hit OS watch limits (e.g. inotify) and add overhead given the handler ignores most deep events; consider scheduling non-recursively.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
GNS3__gns3-server__272
GNS3/gns3-server
272
defect
2ccb30eeb55ff68d7d674affb743fb719f56b89c
fc14deee1bdf45e862ba83ac44fcb59899ecb0dc
Backup upload images projects
Fix #259
diff --git a/gns3server/handlers/upload_handler.py b/gns3server/handlers/upload_handler.py index 9a4312764..716b52a17 100644 --- a/gns3server/handlers/upload_handler.py +++ b/gns3server/handlers/upload_handler.py @@ -18,6 +18,9 @@ import os import aiohttp import stat +import io +import tarfile +import asyncio fro...
2
2
1
[{"id": "G0", "claim": "The reviewer asks whether the debug `print(e)` in the `except OSError` handler should be kept.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default for `projects_path` should be `~/GNS3/projects` rather than `~/GNS3...
null
GPflow__GPflow__1223
GPflow/GPflow
1,223
defect
8a73e6daac7f03f4c4af19113e91ab7cfd0b5efa
b45d135546eab86e10d354a05b9784c8f362317d
Inconisistency on whether q_sqrt is triangular fixed.
Problem: * KL divergence calculations only take lower triangle parts of q_sqrt in their calculation (implying a lower triangular parameterisation of covariance) * Conditional calculations perform calculations using the whole of q_sqrt. * The end result is if you forgot to add the triangular transform to the q_sq...
diff --git a/gpflow/conditionals/util.py b/gpflow/conditionals/util.py index f4e889857..1e6cc05a6 100644 --- a/gpflow/conditionals/util.py +++ b/gpflow/conditionals/util.py @@ -82,7 +82,7 @@ def base_conditional(Kmn: tf.Tensor, if q_sqrt_dims == 2: LTA = A * tf.expand_dims(tf.transpose(q_sqrt), 2)...
4
2
0
[{"id": "G0", "claim": "The new tests' input-size constants (Ln, Nn, Mn — e.g. Mn = 50) could be smaller so the tests run faster while staying just as useful, since milliseconds add up across many tests.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
GPflow__GPflow__1262
GPflow/GPflow
1,262
defect
96d686f7b956d8d0318505d99968a801bc5fb6e3
5fe3e2efd752b5cb36dc7b0c398d1c580dd50f80
Fix environment variables handling by config
Fix environment variables in `gpflow.config`. I would appreciate if somebody recommended a way of testing env variables with reloading a module. This PR fixes #1180.
diff --git a/gpflow/config/__config__.py b/gpflow/config/__config__.py index 27acaa68f..fe06dbf1d 100644 --- a/gpflow/config/__config__.py +++ b/gpflow/config/__config__.py @@ -2,26 +2,33 @@ import enum import os from dataclasses import dataclass, field, replace -from typing import Dict, Optional, Union +from typing...
5
2
1
[{"id": "G0", "claim": "GPFLOW_POSITIVE_MINIMUM set to the empty string should be treated as None, the same as when the variable is unset, instead of raising TypeError.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not rewrite the ...
null
GPflow__GPflow__1308
GPflow/GPflow
1,308
defect
dd6c59bbb5d928eaa18c781e688396141508ec40
08752e239d4763bd12ba11b41431a62779762345
Broadcasting of kernels reintroduced
Hi all, Reintroduce broadcasting functionality we had in GPflow 1 (added in #895) back into GPflow 2. ## Synopsis of #895 This PR generalises gpflow's conditional code to work with tensors that have an arbitrary number of leading dimension. Before we assumed that `Xnew` passed in `gpflow.conditional` was a ...
diff --git a/gpflow/conditionals/conditionals.py b/gpflow/conditionals/conditionals.py index b64200a63..d76cebb7b 100644 --- a/gpflow/conditionals/conditionals.py +++ b/gpflow/conditionals/conditionals.py @@ -109,9 +109,9 @@ def _conditional( - mean: [N, R] - variance: [N, R] (full_cov = False), [...
8
5
0
[{"id": "G0", "claim": "Pass the axis argument by keyword (axis=0 in the tf.concat calls of statics.py, axis=-1 in Linear.K_diag) instead of positionally, to make the code clearer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Write `raise NotI...
null
GPflow__GPflow__1372
GPflow/GPflow
1,372
defect
310dfefc55445d2e3dad2f836b3ff4e224845348
cc26e872347e5a9f4636705f8013e49645fedc67
MCMC notebook prior update
subj. ^^^ Details in: https://github.com/GPflow/GPflow/projects/4#card-33000800
diff --git a/doc/source/notebooks/advanced/mcmc.pct.py b/doc/source/notebooks/advanced/mcmc.pct.py index 0d50d43d8..de17e9962 100644 --- a/doc/source/notebooks/advanced/mcmc.pct.py +++ b/doc/source/notebooks/advanced/mcmc.pct.py @@ -6,7 +6,7 @@ # extension: .py # format_name: percent # format_versi...
10
10
1
[{"id": "G0", "claim": "The new notebook sentence should be expanded to say that, since an Exp transform is used, a lognormal prior on a constrained parameter corresponds to a Normal prior on the unconstrained space.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
GPflow__GPflow__1377
GPflow/GPflow
1,377
defect
1196151aaf9cb59a3a2cb2e5e68fbf209b7e1c02
5c356243a68a693509569aa596547cbbd3574c31
Make Scipy more robust & faster
* Adds an explicit check to Scipy() that all elements of `variables` are actually tf.Variable instances (unconstrained variables) - accidentally passing `model.trainable_parameters` may work but give the wrong answers for parameters with transforms! Passing `model.trainable_variables` is the right thing to do. * Updat...
diff --git a/doc/source/notebooks/tailor/mixture_density_network.pct.py b/doc/source/notebooks/tailor/mixture_density_network.pct.py index 2d2ac84a6..e41a8c24c 100644 --- a/doc/source/notebooks/tailor/mixture_density_network.pct.py +++ b/doc/source/notebooks/tailor/mixture_density_network.pct.py @@ -182,7 +182,7 @@ def...
2
1
1
[{"id": "G0", "claim": "The notebook's use of model.trainable_parameters with Scipy().minimize might have been a bug.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G2", "claim": "Computing the gradient inside the GradientTape context is a slow-down, not a speed...
null
GPflow__GPflow__1408
GPflow/GPflow
1,408
defect
741718051b4d2298958cc4a0326ad46aaec18b40
f2b884f00813040681500ab978353d280fc6e07f
Improve user experience on invalid assignments to constrained Parameters
Addresses #1407. * attempt to improve the error message in the gpflow.Parameter check on assigning a new value that is incompatible with the parameter's transform (e.g. a non-positive value to a parameter with a positive() transform) * Gaussian likelihood: add explicit `__init__`-time check that variance > varian...
diff --git a/gpflow/base.py b/gpflow/base.py index d5a87853f..48f7dad3a 100644 --- a/gpflow/base.py +++ b/gpflow/base.py @@ -159,8 +159,9 @@ def validate_unconstrained_value(self, value: tf.Tensor, dtype: DType) -> tf.Ten value = _cast_to_dtype(value, dtype) unconstrained_value = _to_unconstrained(val...
3
1
1
[{"id": "G0", "claim": "Explicit tests should be added for the new Gaussian constructor check (variance must be strictly greater than variance_lower_bound).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new assignment error message could be extra e...
null
GPflow__GPflow__1448
GPflow/GPflow
1,448
defect
8b24183310c08925a15162cc42744d8823501296
0e83990c5154b43ca177ab62bad5489234ff3eae
Use a boolean for full covariance in sample_mvn.
Addressing #1447 . This PR replaces the string comparison in the `conditionals.utils.sample_mvn` function with the same boolean that is used in other places in GPFlow.
diff --git a/gpflow/conditionals/multioutput/sample_conditionals.py b/gpflow/conditionals/multioutput/sample_conditionals.py index a6d17e336..37fef7dc6 100644 --- a/gpflow/conditionals/multioutput/sample_conditionals.py +++ b/gpflow/conditionals/multioutput/sample_conditionals.py @@ -43,7 +43,7 @@ def _sample_condition...
1
1
0
[{"id": "G0", "claim": "Add a test for sample_mvn so that the function signature does not change back to using a string, plus a test that checks the different behaviour of the code based on full_cov=[True|False].", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GPflow__GPflow__1452
GPflow/GPflow
1,452
defect
08739ce2b29fbe5ea5fdf0dcadbaa88ed95e7882
94e4960fd96a1c063f1fdd35f4f084b0480221e0
Convert data structures to tensor in model init method
Addresses https://github.com/GPflow/GPflow/issues/1439
diff --git a/doc/source/notebooks/advanced/ordinal_regression.pct.py b/doc/source/notebooks/advanced/ordinal_regression.pct.py index b6815bf15..2f85f204f 100644 --- a/doc/source/notebooks/advanced/ordinal_regression.pct.py +++ b/doc/source/notebooks/advanced/ordinal_regression.pct.py @@ -83,7 +83,7 @@ def generate_data...
3
1
1
[{"id": "G0", "claim": "data_input_to_tensor forcefully converts every non-tensor element to GPflow's default_float(), discarding original dtypes; the reviewer asks why not keep the original dtype (a question to resolve before merge).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
GPflow__GPflow__1476
GPflow/GPflow
1,476
defect
150a0d1ba9e7fb23476a79849df975c54b2ef967
d4973d8275a5e090c919930be23831b44d0172da
Fix freeze and traverse utility methods
TensorFlow Probability 0.10 introduces a new `_parameters` attribute in tfp.bijectors.Bijector instances that contains a self-reference, which breaks GPflow's module-traversion utilities (leaf_components, print_summary, deepcopy, freeze). This PR changes `traverse_module` to ignore the `_parameters` attribute and propo...
diff --git a/doc/source/notebooks/intro_to_gpflow2.pct.py b/doc/source/notebooks/intro_to_gpflow2.pct.py index 4a0edbdc7..6418becb2 100644 --- a/doc/source/notebooks/intro_to_gpflow2.pct.py +++ b/doc/source/notebooks/intro_to_gpflow2.pct.py @@ -6,7 +6,7 @@ # extension: .py # format_name: percent # ...
10
8
0
[{"id": "G0", "claim": "cdmatters asks whether there are existing tests for freeze that could be used to be sure the rewritten memo-based deepcopy works.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two empty '# %%' cells this PR adds at the end of ...
null
GPflow__GPflow__1505
GPflow/GPflow
1,505
defect
d69b17df26683cbd16260bd855ba09893ff424e0
6aa25a8c7c8ddf60dbf8aaf3d9d7933bc48b6ed9
Quadrature Refactoring
# Goals This PR refactors the `ndiagquad` function responsible for performing the quadrature needed to compute expectations related to non-conjugate likelihoods. The new implementation uses classes to implement quadrature methods. This enables the class to store the points and weights used for quadrature. It also o...
diff --git a/gpflow/quadrature/__init__.py b/gpflow/quadrature/__init__.py new file mode 100644 index 000000000..81ef818e4 --- /dev/null +++ b/gpflow/quadrature/__init__.py @@ -0,0 +1,3 @@ +from .base import GaussianQuadrature +from .gauss_hermite import NDiagGHQuadrature +from .deprecated import hermgauss, mvhermgauss...
9
7
1
[{"id": "G0", "claim": "The speculative comment block above the per-function reduce_sum (which questions the approach and misspells 'guarantee' and 'compatible') should be deleted, since doing the reduce_sum per f is perfectly fine.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "in...
null
GPflow__GPflow__1518
GPflow/GPflow
1,518
defect
5744b519b682507d83db546116c41254994f4fa8
1ccaa726401ffa7af9786ff977f6cba958294741
Update parameter to be savable
An attempt to make the custom tensor Parameter savable (loadable) with `tf.saved_model`.
diff --git a/doc/source/notebooks/theory/FITCvsVFE.py b/doc/source/notebooks/theory/FITCvsVFE.py index 1d9118b22..67a9e8352 100644 --- a/doc/source/notebooks/theory/FITCvsVFE.py +++ b/doc/source/notebooks/theory/FITCvsVFE.py @@ -103,9 +103,9 @@ def repeatMinimization(model, Xtest, Ytest): def trainSparseModel(Xtrain...
10
3
1
[{"id": "G0", "claim": "Setting a parameter's transform in place may break now, and the codebase should be checked for any remaining uses of that pattern.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since TF 2.2 resolved the issue with cast, the ...
null
GPflow__GPflow__1541
GPflow/GPflow
1,541
defect
5744b519b682507d83db546116c41254994f4fa8
65ba5897834068fb625553f269cc7f7728476004
Re-introduce pytest-xdist
**PR type:** build improvement Re-introduces pytest-xdist for locally running tests parallelized. The issue was a test parametrization that wasn't deterministic (as based on `set()`). [This is for local tests (`make test`) only; we could run on CircleCI as well, but in practice given the runtime constraints of the f...
diff --git a/Makefile b/Makefile index 815213bd1..3c6d0bb1f 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,6 @@ type-check: mypy . test: - pytest -v --durations=10 tests/ + pytest -n auto --dist loadfile -v --durations=10 tests/ check-all: format-check type-check test diff --git a/tests/gpflow/config/test_co...
1
1
1
[{"id": "G0", "claim": "From looking at CircleCI, the PR's pytest-xdist change does not appear to make the test run actually any faster.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GPflow__GPflow__1585
GPflow/GPflow
1,585
defect
b74e19e74c1a0e705e69a6bbee7709354e12563e
ffb7b94681db4c86c0129f3ea8e911d6bcdc084c
Remove tiling workaround for lack of broadcasting in previous TensorFlow versions
We used to tile in `gauss_kl()` to work around TensorFlow's lack of broadcasting. Since TensorFlow 2.2, this is finally working, and this PR removes the tiling for TensorFlow>=2.2. Resolves #1321.
diff --git a/gpflow/kullback_leiblers.py b/gpflow/kullback_leiblers.py index 2d0a3ed17..01a72f43b 100644 --- a/gpflow/kullback_leiblers.py +++ b/gpflow/kullback_leiblers.py @@ -15,6 +15,7 @@ # -*- coding: utf-8 -*- import tensorflow as tf +from packaging.version import Version from .config import default_float, ...
1
1
1
[{"id": "G0", "claim": "A test for the tiled case (the TF<2.2 tiling workaround branch) should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GPflow__GPflow__1659
GPflow/GPflow
1,659
defect
a8e182d1c90682019f15d1684aaa848894d706f6
35b8b0c78c0b9c04863667183edd20cb431a9470
John/start posterior tests
Various bugfixes uncovered by this PR have been split out into separate PRs: https://github.com/GPflow/GPflow/pull/1652 https://github.com/GPflow/GPflow/pull/1654 https://github.com/GPflow/GPflow/pull/1662 https://github.com/GPflow/GPflow/pull/1663
diff --git a/gpflow/posterior.py b/gpflow/posterior.py index f6af11d07..3daaea338 100644 --- a/gpflow/posterior.py +++ b/gpflow/posterior.py @@ -346,8 +346,14 @@ def _get_Kff(self, Xnew, full_cov): def _conditional_with_precompute( self, Xnew, full_cov: bool = False, full_output_cov: bool = False ) -...
7
7
3
[{"id": "G0", "claim": "The removal of the unwhitened, non-full-covariance adjoint is wrong: in the not full_cov and not full_output_cov case the returned marginal variances must have shape [N, Q] not [Q, N], so the adjoint should be kept.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ...
null
GPflow__GPflow__1696
GPflow/GPflow
1,696
defect
268e315fda816816f75580d5af51b58500f0447e
efadb4ef68395043cd366f091384d2cefe9802a3
Andrewl cache gpr
<!-- (Lines like this are comments and will be invisible - you can leave them as is, or remove them) --> <!-- Thank you very much for spending time on contributing to GPflow! This template exists to simplify communicating basic information that is required to understand your contribution. Please fill it in as far ...
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 144c51a86..817f0a135 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -78,5 +78,6 @@ Because GitHub's [graph of contributors](http://github.com/GPflow/GPflow/graphs/ [@insysion](https://github.com/insysion) [@sam-willis](https://github.com/sam-willis) [@vatsa...
21
19
1
[{"id": "G0", "claim": "The pull request's files appear to have been reformatted with an older version of black than the recently bumped 20.8b1, and the reviewer asks which version was used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The not...
null
GPflow__GPflow__1699
GPflow/GPflow
1,699
defect
268e315fda816816f75580d5af51b58500f0447e
eb8d629e700bfd271500232cf78edfa8df393854
John/parameters
<!-- (Lines like this are comments and will be invisible - you can leave them as is, or remove them) --> <!-- Thank you very much for spending time on contributing to GPflow! This template exists to simplify communicating basic information that is required to understand your contribution. Please fill it in as far ...
diff --git a/gpflow/base.py b/gpflow/base.py index de8a13345..419883631 100644 --- a/gpflow/base.py +++ b/gpflow/base.py @@ -12,14 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -import functools from enum import Enum +from inspect import currentfra...
5
4
1
[{"id": "G0", "claim": "The `from inspect import currentframe, getargvalues` import added at the top of gpflow/base.py is not required and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The renamed mcmc helper passes the ident...
null
GPflow__GPflow__1706
GPflow/GPflow
1,706
defect
3e4b9f16d5b0757975e9cc11bb63db44dd2acf4d
b59eb52486de0b8438784f8154549dcff18ee16b
Conjugate Gradient Lower Bound
CGLB [1] has a tighter bound and better hyperparameter estimation comparing to SGPR model. Implementation-wise the difference between SGPR and CGLB is an extra code for the conjugate gradient, which is quite simple. The original implementation can be found at [2]. [1] https://arxiv.org/abs/2102.08314v1 [2] https:/...
diff --git a/gpflow/models/cglb.py b/gpflow/models/cglb.py new file mode 100644 index 000000000..d4e08e81a --- /dev/null +++ b/gpflow/models/cglb.py @@ -0,0 +1,158 @@ +import tensorflow as tf + +from collections import namedtuple +from ..base import Parameter +from ..config import default_float, default_int +from ..uti...
10
7
0
[{"id": "G0", "claim": "`_common_calculation` should be placed in `SGPRBase` (or at least in the base class) with the necessary changes so it can also serve the upper bound, possibly as a separate PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `add...
null
GPflow__GPflow__1760
GPflow/GPflow
1,760
defect
501b8c2b8d1ef64a2e679e957137fc91871be08f
513bcf8ae93ea49046d6539253aa186eafbc81a5
Add initial code for shape checking.
**PR type:** new feature **Related issue(s)/PRs:** <!-- GitHub issue number, e.g. "resolves #1216" --> ## Summary **Proposed changes** Add a library for asserting / checking tensor shapes. This is initially copied from a Secondmind internal project, and we'll probably want to iterate on it a bit before usi...
diff --git a/.circleci/config.yml b/.circleci/config.yml index f0e9fd2420..981a9b4efe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -70,7 +70,7 @@ jobs: name: Install type checker command: | source .venv/bin/activate - pip install --progress-bar=off mypy t...
3
2
1
[{"id": "G0", "claim": "Fix the docstring grammar: 'spec is definition of the expected shape. spec a sequence of one of:' should read 'spec is a definition of the expected shape. spec is a sequence of one of:'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
GPflow__GPflow__1761
GPflow/GPflow
1,761
defect
b52f9e7cafafa28f03f85c018fd8a13193107761
a485c665187dd473db2d1444843481bdab12ba1f
Add posterior object for VGP model.
**PR type:** new feature **Related issue(s)/PRs:** fixes #1748 ## Summary **Proposed changes** Add a `VGPPosterior` class, and a `posterior` method to the VGP model. I have no idea what I'm doing - I've just shuffled around existing code. Please review carefully. ### Minimal working example ```pyt...
diff --git a/RELEASE.md b/RELEASE.md index 2c9491987b..c73961a319 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -60,7 +60,10 @@ This release contains contributions from: ## Major Features and Improvements -* Added `gpflow.experimental.check_shapes` for checking tensor shapes. (#1760) +* Add new posterior class to en...
2
1
0
[{"id": "G0", "claim": "Add a test for a non-Gaussian likelihood to the new VGP posterior tests (tests/gpflow/models/test_vgp_posterior.py only exercises a Gaussian likelihood).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new _conditional impleme...
null
GPflow__GPflow__1774
GPflow/GPflow
1,774
defect
f07b1330fe83045d790764182239c1bc20f6f97c
5b57fb8089b6b78d5f56c57d5e476e1695dc245a
Make the VGP support variable-shaped data.
Make the VGP support variable-shaped data. This includes: 1. Adding `shape` parameters to the `Parameter` class, to allow it to have dynamic shapes. 2. Adding an `after_data_changed` method to `InternalDataTrainingLossMixin` to allow the model to update internal values after data has changed. 3. Updating the `VGP...
diff --git a/RELEASE.md b/RELEASE.md index c73961a31..bf6218291 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -61,6 +61,8 @@ This release contains contributions from: ## Major Features and Improvements * Add new posterior class to enable faster predictions from the VGP model. (#1761) +* VGP class bug-fixed to work wi...
11
8
4
[{"id": "G0", "claim": "An explicit `pass` in the empty `after_data_changed` body would make clearer that the method is not abstract.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new hook method should also be mentioned in the class docstr...
null
GPflow__GPflow__1777
GPflow/GPflow
1,777
defect
5f30be15f06997921faca32fc74d13b40d388c72
39ffea0fd12954cd8c3205848d3e1422e271d7f9
Add more type hints.
1. Reformat `mypy.ini` (again), so that code and corresponding tests are grouped together. 2. Add type hints to covariances tests. 3. Add type hints to experimental tests.
diff --git a/mypy.ini b/mypy.ini index 1020a3d8dd..740aecad8e 100644 --- a/mypy.ini +++ b/mypy.ini @@ -16,58 +16,34 @@ warn_return_any = False ; modules that haven't had types added are passing anyway so may not appear below. ; ; remove modules from this skip list when types have been added -[mypy-gpflow.conditional...
1
1
0
[{"id": "G0", "claim": "The test's type-ignore comment on arg_ref.__str__.return_value should be removed by assigning a MagicMock with a __str__ attribute instead (suggested: arg_ref.__str__ = MagicMock(return_value=\"my_argument_reference\")).", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
GPflow__GPflow__1780
GPflow/GPflow
1,780
defect
c49d7010fc77d35c4071ce0a76b56329ff46ee17
f65d6fedd25e247541518b5f78127b8188929ec5
Add type hints to expectations, likelihoods, and posterior tests.
Add type hints to expectations, likelihoods, and posterior tests.
diff --git a/gpflow/posteriors.py b/gpflow/posteriors.py index a753817d78..b665a4f1f7 100644 --- a/gpflow/posteriors.py +++ b/gpflow/posteriors.py @@ -941,7 +941,7 @@ def create_posterior( whiten: bool, mean_function: Optional[MeanFunction] = None, precompute_cache: Union[PrecomputeCacheType, str, None] ...
2
2
0
[{"id": "G0", "claim": "The docstring of test_switched_likelihood_regression_valid_num_latent_gps contains a typo: 'If the number ofnn' should read 'If the number of'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PosteriorType alias could st...
null
GPflow__GPflow__1798
GPflow/GPflow
1,798
defect
2ca04f22fa8c5450111c818805bc55b608810b5b
1ddd5fada85b0ab8474c2121906949357fee99d7
Add a hook to let the user register shapes for custom types.
Add a hook to let the user register shapes for custom types. Honestly I'm mostly doing this to better be able to handle / test object with shape `None`.
diff --git a/gpflow/experimental/check_shapes/__init__.py b/gpflow/experimental/check_shapes/__init__.py index c5dfeb8ff..66511691e 100644 --- a/gpflow/experimental/check_shapes/__init__.py +++ b/gpflow/experimental/check_shapes/__init__.py @@ -184,10 +184,57 @@ def linear_model( Model predictions. \"\"...
2
2
0
[{"id": "G0", "claim": "`__all__` should be assigned `list(dir())` instead of the equivalent list comprehension `[export for export in dir()]`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The `Actual` prefix on the new public type aliases (...
null
GPflow__GPflow__1807
GPflow/GPflow
1,807
defect
94b432847cb82c7627a57987f5c5ddd7fc400414
0b90c0246ccc0b1685b4c4c0368cd9907da43bb3
Test builds with both minimum and maximum supported versions.
1. Test builds with both minimum and maximum supported versions of Python, Tensorflow and Tensorflow-probability. 2. Fix a couple of tests/bugs that fail with the newer versions. 3. Update package classifiers.
diff --git a/.circleci/config.yml b/.circleci/config.yml index 53e7d44dc..91a3ffebf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,19 +1,50 @@ version: 2.1 +parameters: + min_py_ver: + type: string + default: "3.7" + max_py_ver: + type: string + default: "3.10" + min_tf_ver: + t...
1
1
0
[{"id": "G0", "claim": "Omit the trailing `.*` from the parameterised TensorFlow and TensorFlow-probability version pins in .circleci/config.yml, in case a min/max version should ever include a point version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GPflow__GPflow__1810
GPflow/GPflow
1,810
defect
457ddf89341f5ac22641eda524747fa2ad628a2f
30740afcb1299def0b48b4d3472c10c7759817dc
Add configuration of check_shapes.
Add configuration of check_shapes. 1. Allow people to disable shape checking. 2. Allow people to set the format of docstrings, though right now we only support "Sphinx" and "None".
diff --git a/.pylintrc b/.pylintrc index 19ec856981..9d5d9fdfe0 100644 --- a/.pylintrc +++ b/.pylintrc @@ -131,6 +131,7 @@ disable=missing-docstring, too-many-lines, fixme, too-many-branches, + global-statement, # Enable the message, report, category or checker with the given id(s)....
5
3
1
[{"id": "G0", "claim": "set_rewrite_docstrings should accept a boolean input, similar to set_enable_check_shapes.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The check_shapes settings (the enabled flag and the docstring format) could also be specified a...
null
GPflow__GPflow__1836
GPflow/GPflow
1,836
defect
3e9f4e9b0cfcf4c028c98f9f9760aa030229dd4a
316a1a26fb4109807859ab5bcb9a99d831472fd8
Add support for user notes on shapes.
Add support for user notes on shapes. This includes: 1. Add new types `ParsedNoteSpec` to store the notes, and `ParsedFunctionSpec`, which wraps both notes and argument specs. 2. Update the grammar to let the user specify notes. 3. Update error messages to display the notes. 4. Update the docstring rewriting t...
diff --git a/gpflow/experimental/check_shapes/__init__.py b/gpflow/experimental/check_shapes/__init__.py index dc02e7bd98..29da5bb5db 100644 --- a/gpflow/experimental/check_shapes/__init__.py +++ b/gpflow/experimental/check_shapes/__init__.py @@ -13,8 +13,7 @@ # limitations under the License. # flake8: noqa -""" -A...
3
1
0
[{"id": "G0", "claim": "The indent setup in the docstring rewriter would be cleaner as `indent = self._indent or 0` instead of assigning and then checking for None separately.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The expected line numb...
null
GPflow__GPflow__1845
GPflow/GPflow
1,845
defect
460d16bd2981d0ec927c65d005e7d1644d260ded
3177a26fb866503e10129ab0085296164f380477
Factor shape checking out into a separate class.
Split `check_shapes.py` into two: 1. `checker.py`, which only has the shape checking logic. 2. `decorator.py`, which only has a function decorator, that applies the logic from `checker.py`. This allows the shape checking logic to be used without decorating a function.
diff --git a/gpflow/experimental/check_shapes/__init__.py b/gpflow/experimental/check_shapes/__init__.py index 53c03cd8fc..ac2f57fb48 100644 --- a/gpflow/experimental/check_shapes/__init__.py +++ b/gpflow/experimental/check_shapes/__init__.py @@ -202,6 +202,19 @@ def fake_f(a: tf.Tensor) -> tf.Tensor: # Test t...
3
3
0
[{"id": "G0", "claim": "The docstring of check_shapes says \"Raise an eror if any tensor has the wrong shape.\" and should read \"error\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring of check_shapes says tensors are checked for \"...
null
GPflow__GPflow__1855
GPflow/GPflow
1,855
defect
8e64ed039275cf1d3b66856277023c9548317bd8
927b24d1d3732b3eb7054817900d8a15e408b92f
Add conditional shapes.
Add support for conditional shapes. Including: 1. Extend the specification language with an `if` statement and minimal support for boolean expressions. 2. Type of `ParallelContext.children` has changed from `List` to `Tuple`, which allows `ParallelContext` to be hashed, which is necessary to nest a `ParallelCont...
diff --git a/gpflow/experimental/check_shapes/__init__.py b/gpflow/experimental/check_shapes/__init__.py index 759e4c7bec..c555736fd9 100644 --- a/gpflow/experimental/check_shapes/__init__.py +++ b/gpflow/experimental/check_shapes/__init__.py @@ -38,7 +38,7 @@ def linear_model( The shapes to check are specified by the...
3
1
0
[{"id": "G0", "claim": "The new 'Condition specification' documentation should mention that every shape spec with a condition evaluating to true is applied, not just the first one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parenthesisatio...
null
GPflow__GPflow__1880
GPflow/GPflow
1,880
defect
925c4a79594a70ba6c0040efbd99b1881937091b
7f35358d5eed826cf127d41d8e8c45e3f7000775
Add check_shapes to inducing_variables.
Add shape checking to the `inducing_variables` sub-package: 1. I don't know what's going on with that `kufs.py`. See: https://secondmind-ai.slack.com/archives/CUFMWJN4T/p1651748445091629 2. I use `get_shape.register` to define a shape of inducing variables. 3. This triggered some `mypy` warnings in `posteriors.py`...
diff --git a/RELEASE.md b/RELEASE.md index 7f6876c30a..7fda357512 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -33,14 +33,13 @@ This release contains contributions from: <INSERT>, <NAME>, <HERE>, <USING>, <GITHUB>, <HANDLE> -# Release 2.5.2 (next upcoming release in progress) +# Release 2.6.1 (next upcoming release...
1
1
0
[{"id": "G0", "claim": "In num_inducing, using a @check_shapes decorator with a `# type: ignore` comment would be better than assigning `cs = ShapeChecker().check_shape` to work around mypy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GPflow__GPflow__1890
GPflow/GPflow
1,890
defect
cfbe1f754a3565b847ed8b3d187d453ada838353
8d69e30793827a0fe82cf7458efc6f92d1973139
Support multiple variable-rank dimension specifications.
Fixes: #1889 Support multiple variable-rank dimension specifications. For example: ```python @check_shapes( "a: [a_shape...]", "b: [b_shape...]", "return: [a_shape..., b_shape...]", # <-- Previously not allowed. ) def broadcasting_elementwise( op: Callable[[tf.Tensor, tf.Tensor], tf.Tensor...
diff --git a/RELEASE.md b/RELEASE.md index 05a8ec405..2cc89fa70 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -49,8 +49,8 @@ This release contains contributions from: ## Major Features and Improvements -* <INSERT MAJOR FEATURE HERE, USING MARKDOWN SYNTAX> -* <IF RELEASE CONTAINS MULTIPLE FEATURES FROM SAME AREA, GRO...
9
9
1
[{"id": "G0", "claim": "The test suite could also include a bad broadcast test, covering the failure case of the new broadcast variable-rank handling.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The best-effort-checking documentation gives a wrong ex...
null
GPflow__GPflow__1905
GPflow/GPflow
1,905
defect
5e8938fdb4879f16c978d91f292442dcb849729a
ab8dabe76185b90e29cb9df9cf65f8ee0a0561fc
Make sure all kernels handle broadcasting and add shape checks to them.
This PR: 1: Completely rewrites `tests/gpflow/kernels/test_broadcasting.py` to be more thorough. 2: Makes sure all the kernels pass it. 3: Adds `check_shapes` to all kernels. Fixes: #1339 Partial: #1241
diff --git a/gpflow/kernels/base.py b/gpflow/kernels/base.py index 0a13b040a3..67dcac4d1b 100644 --- a/gpflow/kernels/base.py +++ b/gpflow/kernels/base.py @@ -29,12 +29,13 @@ import abc from functools import partial, reduce -from typing import Callable, List, Optional, Sequence, Tuple, Union +from typing import Cal...
7
3
2
[{"id": "G0", "claim": "The last two return shape specs of the multioutput __call__ check_shapes decorator should also carry the condition \"(X2 is None)\", as the sibling specs do.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hand-built trans...
null
GPflow__GPflow__1912
GPflow/GPflow
1,912
defect
c42cd4772543dc0c3756620c8b407d8dbf2b2ee0
4e4d2db78cb056e4f4bb8f141b3974377c66164b
Micro optimisations of check_shapes.
A couple of optimisations to `check_shapes` after looking at it through a profiler: 1. It turns out we were spending a lot of time computing hashes. Instead of having many dicts, each containing some information for each variable, we create a `_VariableState` structure, and have a single dict. This allows us to redu...
diff --git a/gpflow/experimental/check_shapes/__init__.py b/gpflow/experimental/check_shapes/__init__.py index 86333bd41..c521f520a 100644 --- a/gpflow/experimental/check_shapes/__init__.py +++ b/gpflow/experimental/check_shapes/__init__.py @@ -465,8 +465,10 @@ DocstringFormat, disable_check_shapes, get_...
1
1
0
[{"id": "G0", "claim": "The reviewer suggests using dataclass field default values (field(default_factory=list) etc. for the mutable fields) on _VariableState instead of a new() static factory method, so the default dict can simply be written DefaultDict(_VariableState).", "category": "design", "verdict": "supported", ...
null
GPflow__GPflow__1919
GPflow/GPflow
1,919
defect
7d36d5a3ed9cee4b37b7c75792fcf987aaaa0bd7
c8210f7f5cd2f33b4bf7b707e87e0c465ad05ce2
Add an X parameter to the Likelihood.
Add an `X` parameter to the `Likelihood` class methods. This will make it easy/possibly to write heteroskedastic likelihoods. I plan to do more with heteroskedastic likelihoods in downstream PRs, but I want to get the "controversial" part of it out of the way first. Basically this is the controversial part, be...
diff --git a/RELEASE.md b/RELEASE.md index 37e997aa6..395ceb507 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -39,6 +39,8 @@ This release contains contributions from: ## Breaking Changes +* All likelihood methods now take an extra `X` parameter. If you have written custom likelihoods or + you have custom code calli...
4
3
0
[{"id": "G0", "claim": "The order of the input arguments is inconsistent across the likelihood methods (X first in most methods, F first in the quadrature helpers), and the PR should explain why that is the case.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
GPflow__GPflow__1960
GPflow/GPflow
1,960
defect
76efa9aa6f9654336c2d54a25ed43a37546e2837
3b628060c2e9d2f913831d075f2544c301c80826
Rewrite (S)GPRPosterior for numerical stability.
Fixes: #1959 Our previous `GPRPosterior` and `SGPRPosterior` objects computes matrix inverses by solving against an identity matrix. This is not numerically stable. In this PR I rewrite those posterior objects. My strategy has simply been to take the old (proven) `predict_f` method, and copy everything that does ...
diff --git a/gpflow/posteriors.py b/gpflow/posteriors.py index da7a832a65..e2a96fd963 100644 --- a/gpflow/posteriors.py +++ b/gpflow/posteriors.py @@ -381,66 +381,43 @@ def _conditional_with_precompute( Relies on cached alpha and Qinv. """ assert_params_false(self._conditional_with_precompute...
4
1
0
[{"id": "G0", "claim": "The new temporaries in `_conditional_with_precompute` (`L, LB, c`, `tmp1`, `tmp2`) should be given more meaningful names.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request could register the shape of a `Precom...
null
GPflow__GPflow__1974
GPflow/GPflow
1,974
defect
4b72d740e745b88c229aa26fb493f134f6086f2f
e3cbed888d78ff7f12ef73bad9ba2bbaba89ed35
Run benchmarks in parallel.
Our benchmarks time out when run. This paralellises them. This is similar in spirit #1972 , but for benchmarks instead of documentation.
diff --git a/.circleci/config.yml b/.circleci/config.yml index a26268b597..9e7f47a462 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,26 @@ parameters: type: string default: "0.17" + tmp_results_dir: + type: string + default: "/tmp/results" + tmp_results_dir_file: + type...
3
1
0
[{"id": "G0", "claim": "ShardingStrategy should explicitly check the spec format so users get a clear error message and dubious specs like \"/3\" are not accepted.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten integration test should keep a ...
null
GPflow__GPflow__1985
GPflow/GPflow
1,985
defect
4f1f4a83d97041737148431db1c4f1e967bd5802
580aa14a9f10087a0d63f0088860da64a8b14930
Change likelihood defaults
**PR type:** bugfix / enhancement ## Summary GPflow had a feature of setting the minimal positive value using `gpflow.config.set_default_positive_minimum`. Recently, the default minimum boundary for positive values in scalar likelihoods has been changed to in module global variable with fixed value. That introduc...
diff --git a/gpflow/config/__config__.py b/gpflow/config/__config__.py index b2743ab81..7bfd4e427 100644 --- a/gpflow/config/__config__.py +++ b/gpflow/config/__config__.py @@ -37,6 +37,7 @@ * ``GPFLOW_FLOAT``: "float16", "float32", or "float64" * ``GPFLOW_POSITIVE_BIJECTOR``: "exp" or "softplus" * ``GPFLOW_POSITIVE...
2
2
1
[{"id": "G0", "claim": "The new docs line should prepend `GPFLOW_` to the environment-variable name for consistency with the entries above it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The naming of the new config should be settled as either ...
null
GPflow__GPflow__2064
GPflow/GPflow
2,064
defect
39bd130200af4b8e918ca4e4d081076f85214a48
0b894cb8682f5b6678b965404d9dc93e31f13d83
Add ability to set tf.function args for scipy optimizer
<!-- (Lines like this are comments and will be invisible - you can leave them as is, or remove them) --> <!-- Thank you very much for spending time on contributing to GPflow! This template exists to simplify communicating basic information that is required to understand your contribution. Please fill it in as far ...
diff --git a/RELEASE.md b/RELEASE.md index 42fdf1960..b717ef012 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -55,11 +55,13 @@ This release contains contributions from: ## Bug Fixes and Other Changes * Fixed bug related to `tf.saved_model` and methods wrapped in `@check_shapes`. +* Added support for setting `tf.funct...
3
3
0
[{"id": "G0", "claim": "The `tffun_args` parameter should be typed as `Optional[Mapping[str, Any]] = None` instead of a mutable dict default, in both `minimize` and `eval_func`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The name `tffun_args...
null
GPflow__GPflow__2074
GPflow/GPflow
2,074
defect
a602affb8b5eae5a605cb1029c02e96d8986444c
96da3327e374dac019d611b15a0eed793f1bee65
Cache scipy compile graphs and re-use if args are same
<!-- (Lines like this are comments and will be invisible - you can leave them as is, or remove them) --> <!-- Thank you very much for spending time on contributing to GPflow! This template exists to simplify communicating basic information that is required to understand your contribution. Please fill it in as far ...
diff --git a/RELEASE.md b/RELEASE.md index 67d197c82..7602040d8 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -58,12 +58,15 @@ This release contains contributions from: * <SIMILAR TO ABOVE SECTION, BUT FOR OTHER IMPORTANT CHANGES / BUG FIXES> * <IF A CHANGE CLOSES A GITHUB ISSUE, IT SHOULD BE DOCUMENTED HERE> * <NOTES...
2
2
1
[{"id": "G0", "claim": "Make compile_cache_limit an initialisation argument so the cache size can be changed and, more importantly, the cache can be disabled (e.g. by setting it to 0) if an unforeseen issue arises.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "c...
null
GPflow__GPflow__2080
GPflow/GPflow
2,080
defect
cda85b022a65b99b4b55e7e46e75f4ab04705cc7
635d793e2d203c5c0ddbdcf7d229cabc859ef8a3
Support tracking loss history
**PR type:** nhancement **Related issue(s)/PRs:** <!-- GitHub issue number, e.g. "resolves #1216" --> ## Summary **Proposed changes** Add support for tracking and returning loss history in the OptimiseResult object when calling minimize (similar to what keras optimizers do). This co-opts the scipy callbac...
diff --git a/RELEASE.md b/RELEASE.md index e4bbef31f..d075639eb 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -50,8 +50,7 @@ This release contains contributions from: ## Major Features and Improvements -* <INSERT MAJOR FEATURE HERE, USING MARKDOWN SYNTAX> -* <IF RELEASE CONTAINS MULTIPLE FEATURES FROM SAME AREA, GRO...
3
3
1
[{"id": "G0", "claim": "The new test should also check that at least the final loss value is correctly captured, e.g. asserting res.loss_history[-1] equals res.fun and model.training_loss().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR author's...
null
GSConnect__gnome-shell-extension-gsconnect__1082
GSConnect/gnome-shell-extension-gsconnect
1,082
defect
312b777bcfe79ca2defa9017d7483d275f5a599a
68f581993897d1828408bd6339c5c36cb7cd8c40
Fix compatibility with GJS 1.68
Fixes: https://github.com/GSConnect/gnome-shell-extension-gsconnect/issues/1073 Fixes: https://github.com/GSConnect/gnome-shell-extension-gsconnect/issues/1071 Related to this change in GJS: https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/591/ Parameters with CONSTRUCT_ONLY flag set seem to work differently ...
diff --git a/src/service/backends/lan.js b/src/service/backends/lan.js index 418c8dd846..0b723ab05e 100644 --- a/src/service/backends/lan.js +++ b/src/service/backends/lan.js @@ -79,14 +79,14 @@ var ChannelService = GObject.registerClass({ 'certificate', 'Certificate', 'The TLS ce...
1
1
0
[{"id": "G0", "claim": "More classes in the code base than the two fixed ones declare GObject.ParamFlags.CONSTRUCT_ONLY and would be affected by the same GJS 1.68 issue, so the fix is incomplete unless CONSTRUCT_ONLY is removed there too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
GSConnect__gnome-shell-extension-gsconnect__1146
GSConnect/gnome-shell-extension-gsconnect
1,146
defect
ad94385bdda0c5947ed175fc60c86a0e04c0af73
5ceb51fec2a9631c32bd613eb23d8ea8b776f892
handle remote keyboard inputs of multiple keys
This pull request handles keyboard inputs of multiple keys, which can be generated by voice to text input. On my devices, text to speech still is not working correctly, but this edit makes it behave exactly the same as on KDE. The glitches need to be fixed on the phone side.
diff --git a/src/service/components/input.js b/src/service/components/input.js index 2ee1d7aa55..d9614c450b 100644 --- a/src/service/components/input.js +++ b/src/service/components/input.js @@ -606,6 +606,13 @@ class Controller { * High-level keyboard input */ pressKey(input, modifiers) { + // ...
3
3
0
[{"id": "G0", "claim": "Could the author try sonnyp's proposed pressKey implementation, which iterates over multi-character input one character at a time instead of recursing through this.pressKey, to see whether it behaves as expected?", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "in...
null
GSConnect__gnome-shell-extension-gsconnect__1911
GSConnect/gnome-shell-extension-gsconnect
1,911
defect
c5d1915172c075086570a2d18f8701165c3ac353
3613d8595f2e8da673e69792bcce118a2d71e26c
feat: add support for protocol version 8
Update the certificate generation to produce EC-based certificates with the required device ID format and reject connections from those with an ID not matching `/[a-zA-Z0-9_]{32,38}/`. Migrate installations to new certificates, with device IDs following the protocol v8 constraints. closes #1910
diff --git a/installed-tests/fixtures/backend.js b/installed-tests/fixtures/backend.js index 34ac4e74bd..07af5ac88f 100644 --- a/installed-tests/fixtures/backend.js +++ b/installed-tests/fixtures/backend.js @@ -292,7 +292,7 @@ export const ChannelService = GObject.registerClass({ deviceId: this.id, ...
1
1
0
[{"id": "G0", "claim": "The configuration migration should notify the user (e.g. that the local device ID was regenerated and devices need re-pairing) instead of deleting the certificate and unpairing devices silently.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GSManagerXZ__GameServerManager__79
GSManagerXZ/GameServerManager
79
defect
02f8cd7639b8a51ad19c4f3b9c0f403e3c5a735e
b15d7142e472eef94411a4cf6c5e2c8a34af657e
fix(server): 修复服务端文件名编码与终端乱码问题
## 关联问题 Closes #78 ## 变更内容 - 为终端会话统一注入 UTF-8 locale,覆盖普通启动和 sudo/su 切换用户场景 - 新增文件名编码检测工具,用于识别包含替换字符 `�` 的损坏文件名 - ZIP 解压时优先使用 UTF-8;若解压失败或检测到损坏文件名,则自动回退到 GBK 重试 ## 验证 - [x] `cd server && npm run build` - [x] `cd server && npm test -- --runInBand` ## 说明 - 这次修改主要防止后续继续产生乱码文件名
diff --git a/server/src/modules/terminal/TerminalManager.ts b/server/src/modules/terminal/TerminalManager.ts index 4ce2ab32..4004b87a 100755 --- a/server/src/modules/terminal/TerminalManager.ts +++ b/server/src/modules/terminal/TerminalManager.ts @@ -12,6 +12,7 @@ import { exec } from 'child_process' import { Terminal...
3
3
3
[{"id": "G0", "claim": "extractZip builds retry directories from Date.now() plus a fixed index, so two extractZip calls started in the same millisecond under the same parent can pick identical temp paths and race on rm/mkdir/extract, corrupting or failing one request's extraction.", "category": "correctness", "verdict"...
null
GTNewHorizons__RetroFuturaGradle__82
GTNewHorizons/RetroFuturaGradle
82
defect
58e4ed47c91a370e36a6aae4ee1cc0e7c5716095
b6bc203279fb074deb9650487a9eac5a4b06e514
Added compile-time interface injection
This adds compile-time interface injection via JST. I copied most of the task logic from the AT task. I inserted it after the AT task in the task dependency graph. I also added a new source set for the interfaces so that the MC source set can compile against them properly. This set depends on the API set, and the ma...
diff --git a/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/mcp/InterfaceInjectionTask.java b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/mcp/InterfaceInjectionTask.java new file mode 100644 index 00000000..43b7a4d8 --- /dev/null +++ b/plugin/src/main/java/com/gtnewhorizons/retrofuturagradle/mcp/...
2
1
0
[{"id": "G0", "claim": "Merge the new interface-injection task into the existing JST-using access-transformer task so the sources jar is processed in one pass instead of two, with a name like jstTransform.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
GaijinEntertainment__go-exhaustruct__138
GaijinEntertainment/go-exhaustruct
138
defect
7f86c51474c36af71a9e5f61dd1f39003d001109
91a41d96c24d15c49a21993ad981d24e6e4a4cfa
fix: recognize directives within slices and maps
In e.g. []any{ Test{}, //exhaustruct:ignore } the comment map links the comment to the Type of the CompositeLit which caused such directives to not be recognized.
diff --git a/analyzer/analyzer.go b/analyzer/analyzer.go index b05f1579..eae01582 100644 --- a/analyzer/analyzer.go +++ b/analyzer/analyzer.go @@ -130,15 +130,18 @@ func getCompositeLitRelatedComments(stack []ast.Node, cm ast.CommentMap) []*ast. node := stack[i] switch node.(type) { - case *ast.CompositeLit, /...
2
2
1
[{"id": "G0", "claim": "Implement the CompositeLit case using the type switch's assigned variable (e.g. `switch tv := node.(type)` with `cm[tv.Type]`) instead of a separate `node.(*ast.CompositeLit)` type assertion, as shown in the suggested code.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
GaijinEntertainment__go-exhaustruct__146
GaijinEntertainment/go-exhaustruct
146
defect
840219801b186d3b079011c51e1344c4b210f878
63bb2dc9740f100bd3881cb0973b3846f83dd839
[analyzer] add report-full-type-path config option
Add ReportFullTypePath config field and -report-full-type-path/-f flag to report full package path in error messages instead of short package name. This helps users configure include/exclude patterns when import aliases make short names ambiguous. - add ReportFullTypePath bool field to Config - add -report-full-typ...
diff --git a/analyzer/analyzer.go b/analyzer/analyzer.go index 71f60ff1..38556e8f 100644 --- a/analyzer/analyzer.go +++ b/analyzer/analyzer.go @@ -323,11 +323,16 @@ func (a *analyzer) processStruct( if f := a.litSkippedFields(lit, structTyp, !isSamePackage); len(f) > 0 { pos := lit.Pos() + typeName := info.Shor...
1
1
0
[{"id": "G0", "claim": "The `-f` short form flag is inconsistent with the codebase pattern where only slice-type flags have short forms and boolean flags do not; remove it to maintain consistency.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GarageGames__Torque3D__1214
GarageGames/Torque3D
1,214
defect
3fe0fe1b927da45f884fb6da736dae420b3d8eb1
3205fea9364d56c7dd0fc16f388e945ecf3082b8
Fix some issues flagged by cppcheck
Resolves #1152 Any ideas on 3205fea93 ?
diff --git a/Engine/source/T3D/fps/guiClockHud.cpp b/Engine/source/T3D/fps/guiClockHud.cpp index 334b272ead..3475b92c9b 100644 --- a/Engine/source/T3D/fps/guiClockHud.cpp +++ b/Engine/source/T3D/fps/guiClockHud.cpp @@ -87,6 +87,7 @@ ConsoleDocClass( GuiClockHud, GuiClockHud::GuiClockHud() { mShowFrame = mShowFill...
4
4
0
[{"id": "G0", "claim": "The local variable `res` in dSscanf should be declared `S32` rather than `int` for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the branch does nothing, the `else` clause should be removed entirely ra...
null
Gelbpunkt__tokio-websockets__108
Gelbpunkt/tokio-websockets
108
defect
2b012a422b8013483c041c3dc121ef4fe5af599c
8179e9b84561ed4dc6bc78131fde748a017a11e6
Track the flushing waker
This fixes an issue where `poll_next` wouldn't always attempt to flush the stream. It will now *always* attempt to do so if there is data available to be sent. There is no problem with this anymore because we now use the same waker that is currently being used for flushing to avoid overwriting the waker. Fixes #106
diff --git a/src/proto/stream.rs b/src/proto/stream.rs index e865490fb06..3d1aee20b13 100644 --- a/src/proto/stream.rs +++ b/src/proto/stream.rs @@ -7,7 +7,7 @@ use std::{ io, mem::{replace, take}, pin::Pin, - task::{ready, Context, Poll}, + task::{ready, Context, Poll, Waker}, }; use bytes::{B...
1
1
0
[{"id": "G0", "claim": "The closure in set_flushing_waker shadows the original waker parameter, and it should use a different name (e.g. |w|) so the outer waker is not shadowed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Gelbpunkt__tokio-websockets__117
Gelbpunkt/tokio-websockets
117
defect
bc38e35405d0898f40307c0ccc6f036e5b1a29df
15c27642be52391cdd569f74d1c701c7e87d4a83
Fix crash in Buf vectored impl of FrameQueue
Fixes: https://github.com/Gelbpunkt/tokio-websockets/issues/116
diff --git a/src/proto/stream.rs b/src/proto/stream.rs index 195869b3965..d81ea04eb10 100644 --- a/src/proto/stream.rs +++ b/src/proto/stream.rs @@ -134,13 +134,17 @@ impl Buf for FrameQueue { fn chunks_vectored<'a>(&'a self, dst: &mut [io::IoSlice<'a>]) -> usize { let mut n = 0; for (idx, frame)...
3
2
1
[{"id": "G0", "claim": "The pull request should also add a regression test for the FrameQueue crash.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The regression test would be nicer if it made sure exactly NUM_MSG messages were received, and Some(\"mes...
null
Gelbpunkt__tokio-websockets__26
Gelbpunkt/tokio-websockets
26
defect
fb9b3f0c54571dc0014eb5ed1e1796581a95d6de
d3f15fc1044ebc33c506a0d34b22229579904b13
empty default features
Speeds up compilation without having to (verbosely) specify `no-default-features = true` and forces users to reason about their optimal RNG & SHA1 impls. Resolves #11.
diff --git a/.github/workflows/autobahn.yml b/.github/workflows/autobahn.yml index 092d17ec4f3..23ac50af0ee 100644 --- a/.github/workflows/autobahn.yml +++ b/.github/workflows/autobahn.yml @@ -27,13 +27,13 @@ jobs: - name: Build tokio-websockets (SIMD) run: | - cargo build --release --example...
1
1
1
[{"id": "G0", "claim": "The `native_tls_self_signed_client` example needs the `client` feature added to its required-features, since the pull request empties the default features that previously supplied it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Gelbpunkt__tokio-websockets__90
Gelbpunkt/tokio-websockets
90
defect
81e8f4319916a11bde2d4f5b7131fbbb63d60482
c78997a8011591fa3e656f3129aa54d70763566e
More SIMD optimizations
In the SIMD implementations, we convert the `[u8; 4]` to an `i32` anyways, so we can choose between rotating the array or the integer. Rotating the array isn't optimized well by rustc/LLVM as seen in `cargo asm`. On x86, rotating the integer is condensed into just a single instruction, `rol`. We need to load the intege...
diff --git a/.github/workflows/autobahn.yml b/.github/workflows/autobahn.yml index 09d7f287a7c..a11aa462d12 100644 --- a/.github/workflows/autobahn.yml +++ b/.github/workflows/autobahn.yml @@ -35,13 +35,6 @@ jobs: run: | cargo build --release --example autobahn_client --example autobahn_server --fea...
5
2
1
[{"id": "G0", "claim": "Routing the unaligned prefix and suffix of the input through `fallback_frame` in the SIMD mask implementations could slow them down when `input` is unaligned; they should call `one_byte_at_once` instead.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"},...
null
GenericMappingTools__gmt__7590
GenericMappingTools/gmt
7,590
defect
92531490786f8e99646ba4a4a6cbce6d0c94d86c
d833d57f8449e0bf9bf55c396fbac5d77a82b860
Make qsort_r argument order the same via macros
THis is trying to fix #7586. For background, see https://stackoverflow.com/questions/39560773/different-declarations-of-qsort-r-on-mac-and-linux. Not doing it right yet but we will have to deal with different argument order, since Linux has a different order than macOS. Here is what my attempt of a macro that is in...
diff --git a/src/compat/qsort.c b/src/compat/qsort.c index 0e7dc45e998..e87095d95a6 100644 --- a/src/compat/qsort.c +++ b/src/compat/qsort.c @@ -20,6 +20,9 @@ Engineering a sort function; Jon Bentley and M. Douglas McIlroy; Software - Practice and Experience; Vol. 23 (11), 1249-1265, 1993. */ +#if GMT_USE_CO...
6
4
4
[{"id": "G0", "claim": "The PR's platform-dependent qsort_r argument-order handling is wrong for the compare functions, so surface writes unexpected grid output under -rg and -rp and many tests fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "sr...
null
Genesis-Embodied-AI__Genesis__1288
Genesis-Embodied-AI/Genesis
1,288
defect
58a076ebbf39c967eb660c91e7981300ef8cdff6
cc698ac61d4acae7135f1541cb06e3fea22f60c3
[MISC] Update default FEM damping 45.0 -> 0.0
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/examples/tutorials/advanced_muscle.py b/examples/tutorials/advanced_muscle.py index d6e311bb67..e8c018fefb 100644 --- a/examples/tutorials/advanced_muscle.py +++ b/examples/tutorials/advanced_muscle.py @@ -24,7 +24,6 @@ ), fem_options=gs.options.FEMOptions( dt=dt, - damping=45.0, ...
2
2
2
[{"id": "G0", "claim": "Keep damping at 45.0 in tests/test_deformable_physics.py because this test requires the velocity to be damped to zero, which will not happen if the damping is set to 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep damp...
null
Genesis-Embodied-AI__Genesis__1290
Genesis-Embodied-AI/Genesis
1,290
defect
e017eae9dec6a8203e7496d55cbe9427b842be06
5834d63866eed51b7fbb2b3ace944caf4a574010
[BUG FIX] Preserve external forces across sub-steps.
### What it does * Keeps previously-set external forces/torques (e.g., drone thrust) alive for every physics micro-step. * Prevents loss of lift when `substeps > 1`. ### How 1. Call `RigidSolver.clear_external_forces()` **once at the start of each outer frame**. 2. Move `process_input()` before the micro-step lo...
diff --git a/genesis/engine/simulator.py b/genesis/engine/simulator.py index 6863053f61..2ff663b4bb 100644 --- a/genesis/engine/simulator.py +++ b/genesis/engine/simulator.py @@ -248,20 +248,23 @@ def f_global_to_s_global(self, f_global): # ------------------------------------ stepping ----------------------------...
4
4
3
[{"id": "G0", "claim": "The pull request mixes in changes from another PR (the pattern_scale terrain feature), and those changes should be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request carries irrelevant whitespace/formatting e...
null
Genesis-Embodied-AI__Genesis__1292
Genesis-Embodied-AI/Genesis
1,292
defect
f8ea9b540c0d5332b5c6266f41a6a5189b8a2aad
cce4e6c8ae0c78c0ef49a769f9bdddbaa9c94ab8
[BUG FIX] Improve external force handling.
## Description * Add option to choose the reference point when applying external forces along with local vs world coordinates * User link's origin by default for external forces instead of link's root center of mass as it makes little sense * Refactor drone propeller force handling to avoid depending on "fake" cen...
diff --git a/genesis/engine/entities/drone_entity.py b/genesis/engine/entities/drone_entity.py index d1b04c0375..5c2496240b 100644 --- a/genesis/engine/entities/drone_entity.py +++ b/genesis/engine/entities/drone_entity.py @@ -21,7 +21,6 @@ def _load_scene(self, morph, surface): self._KM = float(properties["km...
1
1
0
[{"id": "G0", "claim": "Docstrings should be added for the new external-force API (apply_links_external_force / apply_links_external_torque), covering the force/torque arguments and the meaning of the `ref` and `local` parameters.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd...
null
Genesis-Embodied-AI__Genesis__1294
Genesis-Embodied-AI/Genesis
1,294
defect
6ec00a7410b46d46b5ab2b294ac5f8af6396b6bd
e2269306012cfb20d54ffbc82f093f6da21b2972
[MISC] Reduce warning messages.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/genesis/engine/solvers/rigid/rigid_solver_decomp.py b/genesis/engine/solvers/rigid/rigid_solver_decomp.py index add7326527..86b26ea4a5 100644 --- a/genesis/engine/solvers/rigid/rigid_solver_decomp.py +++ b/genesis/engine/solvers/rigid/rigid_solver_decomp.py @@ -46,9 +46,9 @@ def _sanitize_sol_params( ...
4
2
0
[{"id": "G0", "claim": "Removing `ti.loop_config(serialize=...)` from `_kernel_forward_kinematics_links_geoms` may affect performance.", "category": "performance", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out tendon-warning block left in `parse_xml` should jus...
null
Genesis-Embodied-AI__Genesis__1315
Genesis-Embodied-AI/Genesis
1,315
defect
bdc4a018e0eeed267d65724d179b2b5b7c291317
67079a03d6f6ffff60b154b8e4d051658bfd4eec
[FEATURE] Scene saver
- A simple file-based checkpoint system. - Helpers gs.states.save_ckpt(sim, path) and gs.states.load_ckpt(sim, path) restore the full simulator state to a compressed NPZ and meta file. - Each solver now exposes dump_ckpt_to_numpy and load_ckpt_from_numpy. Scalar fields become ndarrays, vector / matrix fields a 1-ele...
diff --git a/genesis/engine/solvers/base_solver.py b/genesis/engine/solvers/base_solver.py index 8bf95cbf9e..ade0679ac5 100644 --- a/genesis/engine/solvers/base_solver.py +++ b/genesis/engine/solvers/base_solver.py @@ -34,6 +34,45 @@ def __init__(self, scene: "Scene", sim: "Simulator", options): def _add_force_fie...
13
10
4
[{"id": "G0", "claim": "Replace the _is_ti_field duck-typing helper with isinstance(obj, ti.Field) checks and remove the helper, since the duck-typing is not a reliable way to detect Taichi fields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
Genesis-Embodied-AI__Genesis__1324
Genesis-Embodied-AI/Genesis
1,324
defect
18a476180c97c266dfd3572cd8743bbae86d205f
c1c189a899abd1383cefb99f0bae58eef57665af
[FEATURE] Environment-wise gravity
This PR introduces support for environment-specific gravity settings. Different environments in the simulation can now have distinct gravity configurations, enabling more flexible and realistic physics behavior tailored to each context. Example use case with two spheres: ``` import torch import genesis as gs ...
diff --git a/genesis/engine/simulator.py b/genesis/engine/simulator.py index a8003b8aad..fb743a8e50 100644 --- a/genesis/engine/simulator.py +++ b/genesis/engine/simulator.py @@ -106,7 +106,8 @@ def __init__( self._steps_local = options._steps_local self._cur_substep_global = 0 - self._gravit...
10
10
4
[{"id": "G0", "claim": "The new gravity test should use an opposing gravity value such as (0.0, 0.0, +9.81) for the second environment.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The gravity test should simulate a dropping sphere instead of a drone,...
null
Genesis-Embodied-AI__Genesis__1370
Genesis-Embodied-AI/Genesis
1,370
defect
72eed10d9ceb6c51c9f751e18f79993d7f51396b
3cbc525addb6cbfa76498e87ad785bbe51a3bd23
[FEATURE] Add 'get_weld_constraints' API.
Adds RigidSolver.get_weld_constraints() – returns an (N, 3) NumPy array (env_id, link1_idx, link2_idx) of all active weld constraints, enabling quick inspection and test assertions without poking internal Taichi fields. Resolves #1365
diff --git a/genesis/engine/solvers/rigid/rigid_solver_decomp.py b/genesis/engine/solvers/rigid/rigid_solver_decomp.py index 0dd4f139e9..644802b509 100644 --- a/genesis/engine/solvers/rigid/rigid_solver_decomp.py +++ b/genesis/engine/solvers/rigid/rigid_solver_decomp.py @@ -4966,6 +4966,19 @@ def _kernel_delete_weld_co...
5
4
3
[{"id": "G0", "claim": "get_weld_constraints should take inspiration of get_contacts, i.e. return a dict instead of a raw tensor and fetch all relevant taichi field values in a single kernel call.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The Python...
null
Genesis-Embodied-AI__Genesis__1438
Genesis-Embodied-AI/Genesis
1,438
defect
03d06b1104dd39628dce3e30424e392160a25adc
91d6b35e1f410c763ae8860e57c29caa844af268
[FEATURE] Add support of 'contype'/'conaffinity' for primitive and mesh entities.
## Description Extend `contype` and `conaffinity` to entity level. ## How Has This Been / Can This Be Tested? This can be used for RL setup where you only want the plane to collide with object not a hand for grasping task. ## Screenshots (if appropriate): https://github.com/user-attachments/assets/f77...
diff --git a/examples/collision/contype.py b/examples/collision/contype.py new file mode 100644 index 0000000000..893ef099e4 --- /dev/null +++ b/examples/collision/contype.py @@ -0,0 +1,90 @@ +import argparse + +import genesis as gs + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("-v",...
6
4
1
[{"id": "G0", "claim": "Unit tests should be added for each feature added by the pull request (the new contype/conaffinity support has none).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The NOTE comment explaining contype/conaffinity should be moved ...
null
Genesis-Embodied-AI__Genesis__1519
Genesis-Embodied-AI/Genesis
1,519
defect
ae58b2c37297669f88a638c0b39d6fab64d333c7
41f10cf0c431e085517d5258f02a70092d3af47d
[FEATURE] Support 2-channel (LA) textures in Rasterizer.
This PR updates genesis/ext/pyrender/utils.py to convert 2-channel (luminance+alpha) textures into RGB (by dropping alpha and replicating luminance) or RGBA (by mapping luminance to RGB and preserving alpha), instead of raising an error. Resolves #1476 <img width="875" height="626" alt="Screenshot 2025-08-07 at ...
diff --git a/genesis/ext/pyrender/utils.py b/genesis/ext/pyrender/utils.py index ae10c22c58..9904998d04 100644 --- a/genesis/ext/pyrender/utils.py +++ b/genesis/ext/pyrender/utils.py @@ -87,7 +87,8 @@ def format_texture_source(texture, target_channels="RGB"): if texture.shape[2] == 1: text...
7
7
2
[{"id": "G0", "claim": "Replace the grayscale conversion with `texture = texture[:, :, (0, 0, 0)]` and add a comment explaining what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fill the RGB channels in one broadcast assignment `tx[:,...
null
Genesis-Embodied-AI__Genesis__1562
Genesis-Embodied-AI/Genesis
1,562
defect
4a2987e329769f596e656f88bbecc6a79dfb1d2e
735b4bb8eb0f1f80989db1679aa142367832879e
[FEATURE] Add Fem fixed constraint for implicit solver
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/genesis/engine/couplers/sap_coupler.py b/genesis/engine/couplers/sap_coupler.py index 32aa5d7d76..11e1cd7a1c 100644 --- a/genesis/engine/couplers/sap_coupler.py +++ b/genesis/engine/couplers/sap_coupler.py @@ -729,18 +729,16 @@ def compute_rigid_pcg_matrix_vector_product(self): ) @ti.func -...
9
8
2
[{"id": "G0", "claim": "The element-to-vertices parameter of compute_elastic_products should be renamed to a plural form such as `I_v` or `i_vs` since it holds several vertex indices.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vertex-ind...
null
Genesis-Embodied-AI__Genesis__1658
Genesis-Embodied-AI/Genesis
1,658
defect
b9041da88ec54f75b81bc509e41d7e1137f76c85
91bd4be42725d16b3c2c3ba942072379253974f7
[FEATURE] Batched AABB
Adds batched AABB retrieval functionality to enable fast failure detection in robotics training. The new `get_aabb()` methods allow efficient querying of axis-aligned bounding boxes for all entities or specific subsets. Addresses: #1641
diff --git a/genesis/engine/entities/rigid_entity/rigid_entity.py b/genesis/engine/entities/rigid_entity/rigid_entity.py index 95307d20a2..087295908e 100644 --- a/genesis/engine/entities/rigid_entity/rigid_entity.py +++ b/genesis/engine/entities/rigid_entity/rigid_entity.py @@ -1679,6 +1679,26 @@ def get_links_quat(sel...
1
1
1
[{"id": "G0", "claim": "The test should also assert the actual AABB values for the box and sphere, which are derivable from their known positions and sizes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Genesis-Embodied-AI__Genesis__1691
Genesis-Embodied-AI/Genesis
1,691
defect
fc5230b64aae54756e06bc7d0b7d6ebc86c28170
423f568f68a85abf1ba6428b2e80c4c9f9526342
[BUG FIX] Fix entity idx to be always int when loading terrain with batch_links_info.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/genesis/engine/solvers/rigid/collider_decomp.py b/genesis/engine/solvers/rigid/collider_decomp.py index fde5dc6c89..a4b1e94485 100644 --- a/genesis/engine/solvers/rigid/collider_decomp.py +++ b/genesis/engine/solvers/rigid/collider_decomp.py @@ -266,7 +266,10 @@ def _init_terrain_state(self): if s...
5
5
1
[{"id": "G0", "claim": "Every resolved bug needs a test, so the terrain entity-idx fix should come with a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test should be marked as required.", "category": "testing", "verdict": "supported", "p...
null
Genesis-Embodied-AI__Genesis__1697
Genesis-Embodied-AI/Genesis
1,697
defect
891dd943b43ba84d81c98a37043a36608f1ba193
74097884b89ee93c78d979de6c7504a887319e5e
[FEATURE, CHANGING] Support rendering deformable body for batched env.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/examples/rendering/multi_env_multi_physics.py b/examples/rendering/multi_env_multi_physics.py new file mode 100644 index 0000000000..6c097fa497 --- /dev/null +++ b/examples/rendering/multi_env_multi_physics.py @@ -0,0 +1,114 @@ +import argparse + +import numpy as np + +import genesis as gs + + +def main():...
6
6
2
[{"id": "G0", "claim": "The 'i_b' argument of add_static_node should not have a default of 0 but be passed explicitly, and duburcqa also doubts 0 is the right value there at all.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding self.scene.envs_offse...
null
Genesis-Embodied-AI__Genesis__1810
Genesis-Embodied-AI/Genesis
1,810
defect
1794b85040581b0ee9f87bcb631db3456e2b4ab4
ce0fc650db1dd42a1cd780e5a59fea5e4e174284
[FEATURE] Make convex decomposition cache scale-invariant.
## Description When the mesh scale changes and the mesh requires convex decomposition, COACD runs again because it uses the raw vertex positions as key for cached directory. ```python cvx_path = get_cvx_path(mesh.vertices, mesh.faces, coacd_options) ``` To avoid this re-run, we first normalize the mesh by us...
diff --git a/genesis/utils/mesh.py b/genesis/utils/mesh.py index de03df3e54..59345799c8 100644 --- a/genesis/utils/mesh.py +++ b/genesis/utils/mesh.py @@ -31,6 +31,7 @@ ) MESH_REPAIR_ERROR_THRESHOLD = 0.01 +CVX_PATH_QUANTIZE_FACTOR = 1e-6 class MeshInfo: @@ -259,9 +260,30 @@ def surface_uvs_to_trimesh_visual(s...
2
2
2
[{"id": "G0", "claim": "A unit test (or testing instructions) should be added for the new scale-invariant convex-decomposition cache behaviour, following the recipe of monkeypatching get_cvx_path, building scenes at two scales, and checking the cache path and scaled vertices.", "category": "testing", "verdict": "suppor...
null
Genesis-Embodied-AI__Genesis__1875
Genesis-Embodied-AI/Genesis
1,875
defect
c413fdeae45e8192955d8c35e90474e7459e263a
12fdc62cb85e923721abea6892e104a34e287bd6
[MISC] Add support of GStaichi dynamic array to forward kinematics and legacy coupler.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/examples/coupling/cloth_attached_to_rigid.py b/examples/coupling/cloth_attached_to_rigid.py index 91f5e7ee4b..8894158bc4 100644 --- a/examples/coupling/cloth_attached_to_rigid.py +++ b/examples/coupling/cloth_attached_to_rigid.py @@ -17,7 +17,7 @@ def main(): args = parser.parse_args() ########...
5
3
0
[{"id": "G0", "claim": "Remove the commented-out `_use_ndarray = os.environ.get(\"GS_ENABLE_NDARRAY\", \"0\") == \"1\"` line completely.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`self.data_manager` should be initialised unconditionally inste...
null
Genesis-Embodied-AI__Genesis__1931
Genesis-Embodied-AI/Genesis
1,931
defect
6f11b2042d875c63d021301039788c6b019351c9
8c8a6b95582f361787012ac18c9b014470929bdb
[BUG FIX] Fix interactive viewer 'Vec3'.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/genesis/ext/pyrender/interaction/vec3.py b/genesis/ext/pyrender/interaction/vec3.py index a3ce004c51..28d0f6af18 100644 --- a/genesis/ext/pyrender/interaction/vec3.py +++ b/genesis/ext/pyrender/interaction/vec3.py @@ -62,7 +62,7 @@ def __repr__(self) -> str: return f"Vec3({self.v[0]}, {self.v[1]},...
18
18
0
[{"id": "G0", "claim": "Do not add this test (test_pyrender_vec3 marked @pytest.mark.required); it is not part of the project's spec.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the project's own assert_allclose helper instead of np.allclose in th...
null
Genesis-Embodied-AI__Genesis__2294
Genesis-Embodied-AI/Genesis
2,294
defect
e3a77d26a7d23463f36d57b83f2bc6c6b1e71f4e
a69d85f3610c4d954818e4cf648bf0565f4c0341
[BUG FIX] Add rigid body entity hibernation mechanism.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/CONTRIBUTING.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github...
diff --git a/examples/hibernation.py b/examples/hibernation.py new file mode 100644 index 0000000000..3279b6ad74 --- /dev/null +++ b/examples/hibernation.py @@ -0,0 +1,144 @@ +""" +Hibernation Example + +This example demonstrates the hibernation feature in Genesis rigid body simulation. +Hibernation allows stationary r...
13
13
1
[{"id": "G0", "claim": "The hibernation test should not force running on both cpu and gpu via @pytest.mark.parametrize(\"backend\", [gs.cpu, gs.gpu]) since no variation is needed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dt=0.01 SimOptions par...
null
Genesis-Embodied-AI__Genesis__2323
Genesis-Embodied-AI/Genesis
2,323
defect
67e3c8d9744a1a4ac66a5359ba7c08ea90084fb0
7ff2ffaaac444238daec66e361ae99efea62ec63
[FEATURE] Track mesh UVs in FEM/PBD solvers for rendering of deformable entities.
## Description Add a list of UVs in the FEM and PBD solvers. This list of UVs is fetched using the surface indices from the solvers, exactly like the vertex position would. ## Motivation and Context The UVs are necessary to rebuild the tangent frame used to sample textures and aniso surfaces of deformable geometr...
diff --git a/genesis/engine/entities/fem_entity.py b/genesis/engine/entities/fem_entity.py index 583cbb0753..9c005b413c 100644 --- a/genesis/engine/entities/fem_entity.py +++ b/genesis/engine/entities/fem_entity.py @@ -389,6 +389,7 @@ def sample(self): from genesis.engine.materials.FEM.cloth import Cloth as Cl...
16
16
3
[{"id": "G0", "claim": "Loading UVs copies the array twice; the reviewer recommends `self._uvs = mesh.visual.uv.astype(gs.np_float, copy=True)` to avoid allocating memory twice.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining...
null
Genesis-Embodied-AI__Genesis__2550
Genesis-Embodied-AI/Genesis
2,550
defect
986a1169158013413d5266038606d21a962a12eb
143634f7e498ad1baa7cb490f9967e237634ae6b
[FEATURE] Add ProximitySensor.
## Related Issue Resolves https://github.com/Genesis-Embodied-AI/Genesis/issues/2549 ## Screenshots (if appropriate): https://github.com/user-attachments/assets/0d91a87a-67be-4b30-8849-1f86d1fb664a ## Checklist: - [x] I read the **CONTRIBUTING** document. - [x] I followed the `Submitting Code Changes` s...
diff --git a/examples/sensors/proximity_shadowhand.py b/examples/sensors/proximity_shadowhand.py new file mode 100644 index 0000000000..8f6d6d393b --- /dev/null +++ b/examples/sensors/proximity_shadowhand.py @@ -0,0 +1,172 @@ +""" +Interactive Proximity sensor with Shadow Hand and keyboard teleop. + +Proximity sensors ...
6
3
0
[{"id": "G0", "claim": "The `_func_closest_point_on_triangle` helper imported from kinematic_tactile should perhaps be moved somewhere else, and if so, to where.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Genesis sensors are supposed to reflect the b...
null
Genesis-Embodied-AI__Genesis__2612
Genesis-Embodied-AI/Genesis
2,612
defect
b91ee9e3cf41719ec8b29c120ccb7d94b58e5eab
4be6edb899b98c49480ecf93cb1af4d3762c12cf
[BUG FIX] Fix IK solver using wrong entity's DOFs for multi-robot scenes.
## Description Fix inverse kinematics returning incorrect results for the second and subsequent robot entities in multi-robot scenes. The IK resample logic in `kernel_rigid_entity_inverse_kinematics` had two bugs: 1. **Iterating over ALL links in the solver** (`range(links_info.root_idx.shape[0])`) instead of only t...
diff --git a/genesis/engine/solvers/rigid/abd/inverse_kinematics.py b/genesis/engine/solvers/rigid/abd/inverse_kinematics.py index ae1ca8f195..416eed4ef2 100644 --- a/genesis/engine/solvers/rigid/abd/inverse_kinematics.py +++ b/genesis/engine/solvers/rigid/abd/inverse_kinematics.py @@ -287,13 +287,17 @@ def kernel_rigi...
8
8
0
[{"id": "G0", "claim": "The test should use the project's custom `assert_allclose` helper instead of hand-rolled norm/compare boilerplate with an extra failure message.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not hardcode its tole...
null
Genesis-Embodied-AI__Genesis__2613
Genesis-Embodied-AI/Genesis
2,613
defect
b91ee9e3cf41719ec8b29c120ccb7d94b58e5eab
4a003f7bcfd39c1350fb198f98b564f84308842a
[FEATURE] Add public API to RigidEntity for kinematic and potential energy.
## Summary - Add `get_kinetic_energy()`, `get_potential_energy()`, and `get_total_energy()` methods to `RigidEntity` - Kinetic energy uses generalized-coordinate mass matrix (`KE = 0.5 * dq^T * M(q) * dq`) for accurate computation on articulated bodies - Potential energy sums `m_i * g^T * p_i` over all links, supportin...
diff --git a/genesis/engine/entities/rigid_entity/rigid_entity.py b/genesis/engine/entities/rigid_entity/rigid_entity.py index 150315c683..0bf04f57f1 100644 --- a/genesis/engine/entities/rigid_entity/rigid_entity.py +++ b/genesis/engine/entities/rigid_entity/rigid_entity.py @@ -3738,6 +3738,81 @@ def get_mass_mat(self,...
5
5
1
[{"id": "G0", "claim": "The kinetic energy computation is invalid because it does not take motor armature into account: it reads the solver's shared mass matrix, which after a step with the approximate_implicitfast integrator carries implicit damping correction terms.", "category": "correctness", "verdict": "supported"...
null
Genesis-Embodied-AI__Genesis__2668
Genesis-Embodied-AI/Genesis
2,668
defect
8aeddae57a2bbec9f578bb61ce5ee917e6ed6116
6c94eb43205778ed9a8ab09cc021c3a2b394ae68
[BUG FIX] Fix loading of GLB meshes missing normals or tex_coord.
## Description Add None checks before calling `len()` on `mesh_glb.normals` and `mesh_glb.tex_coord` in `parse_mesh_glb`. When loading Draco-compressed GLB files that only contain position and color data (without normals or texture coordinates), these attributes are `None`, causing a `TypeError: object of type 'NoneTy...
diff --git a/genesis/utils/gltf.py b/genesis/utils/gltf.py index a300d293a5..5d35767adf 100644 --- a/genesis/utils/gltf.py +++ b/genesis/utils/gltf.py @@ -334,8 +334,8 @@ def parse_mesh_glb(path, group_by_material, scale, is_mesh_zup, surface): ) points = mesh_glb.points ...
1
1
1
[{"id": "G0", "claim": "A unit test should be added covering GLB files (Draco-compressed) that lack normals or tex_coord, with the sample glb shared so it can be uploaded to HuggingFace.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Genesis-Embodied-AI__Genesis__2670
Genesis-Embodied-AI/Genesis
2,670
defect
8aeddae57a2bbec9f578bb61ce5ee917e6ed6116
089bc6781d83d2c30cbd1b42067d7d8c5520648a
[BUG FIX] Fix sparse solve in building hessian.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/contributing/PULL_REQUESTS.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/...
diff --git a/genesis/engine/solvers/rigid/constraint/solver.py b/genesis/engine/solvers/rigid/constraint/solver.py index 523ea6aa45..98d5da04ce 100644 --- a/genesis/engine/solvers/rigid/constraint/solver.py +++ b/genesis/engine/solvers/rigid/constraint/solver.py @@ -16,6 +16,28 @@ from . import backward as backward_co...
15
15
0
[{"id": "G0", "claim": "The test should use the project's own `tensor_to_array` helper instead of `box.get_pos().cpu().numpy().flatten()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `_build_panda_table_scene` helper should be inlined dir...
null
Genesis-Embodied-AI__genesis-world__2550
Genesis-Embodied-AI/genesis-world
2,550
defect
986a1169158013413d5266038606d21a962a12eb
143634f7e498ad1baa7cb490f9967e237634ae6b
[FEATURE] Add ProximitySensor.
## Related Issue Resolves https://github.com/Genesis-Embodied-AI/Genesis/issues/2549 ## Screenshots (if appropriate): https://github.com/user-attachments/assets/0d91a87a-67be-4b30-8849-1f86d1fb664a ## Checklist: - [x] I read the **CONTRIBUTING** document. - [x] I followed the `Submitting Code Changes` s...
diff --git a/examples/sensors/proximity_shadowhand.py b/examples/sensors/proximity_shadowhand.py new file mode 100644 index 0000000000..8f6d6d393b --- /dev/null +++ b/examples/sensors/proximity_shadowhand.py @@ -0,0 +1,172 @@ +""" +Interactive Proximity sensor with Shadow Hand and keyboard teleop. + +Proximity sensors ...
7
3
0
[{"id": "G0", "claim": "The private helper _func_closest_point_on_triangle should perhaps be moved somewhere else rather than being imported from the kinematic_tactile sensor module.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding this sen...
null
Genesis-Embodied-AI__genesis-world__2612
Genesis-Embodied-AI/genesis-world
2,612
defect
b91ee9e3cf41719ec8b29c120ccb7d94b58e5eab
4be6edb899b98c49480ecf93cb1af4d3762c12cf
[BUG FIX] Fix IK solver using wrong entity's DOFs for multi-robot scenes.
## Description Fix inverse kinematics returning incorrect results for the second and subsequent robot entities in multi-robot scenes. The IK resample logic in `kernel_rigid_entity_inverse_kinematics` had two bugs: 1. **Iterating over ALL links in the solver** (`range(links_info.root_idx.shape[0])`) instead of only t...
diff --git a/genesis/engine/solvers/rigid/abd/inverse_kinematics.py b/genesis/engine/solvers/rigid/abd/inverse_kinematics.py index ae1ca8f195..416eed4ef2 100644 --- a/genesis/engine/solvers/rigid/abd/inverse_kinematics.py +++ b/genesis/engine/solvers/rigid/abd/inverse_kinematics.py @@ -287,13 +287,17 @@ def kernel_rigi...
8
8
0
[{"id": "G0", "claim": "The new test should use the repository's custom assert_allclose helper instead of a hand-rolled assert with a custom failure message.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not hardcode the tolerance but u...
null
Genesis-Embodied-AI__genesis-world__2613
Genesis-Embodied-AI/genesis-world
2,613
defect
b91ee9e3cf41719ec8b29c120ccb7d94b58e5eab
4a003f7bcfd39c1350fb198f98b564f84308842a
[FEATURE] Add public API to RigidEntity for kinematic and potential energy.
## Summary - Add `get_kinetic_energy()`, `get_potential_energy()`, and `get_total_energy()` methods to `RigidEntity` - Kinetic energy uses generalized-coordinate mass matrix (`KE = 0.5 * dq^T * M(q) * dq`) for accurate computation on articulated bodies - Potential energy sums `m_i * g^T * p_i` over all links, supportin...
diff --git a/genesis/engine/entities/rigid_entity/rigid_entity.py b/genesis/engine/entities/rigid_entity/rigid_entity.py index 150315c683..0bf04f57f1 100644 --- a/genesis/engine/entities/rigid_entity/rigid_entity.py +++ b/genesis/engine/entities/rigid_entity/rigid_entity.py @@ -3738,6 +3738,81 @@ def get_mass_mat(self,...
5
5
1
[{"id": "G0", "claim": "The kinetic energy computation is invalid because it does not take into account motor armature (the solver's shared mass matrix it reads can be contaminated), so get_kinetic_energy returns wrong values.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
Genesis-Embodied-AI__genesis-world__2659
Genesis-Embodied-AI/genesis-world
2,659
defect
af22153bdb7b045b6884b25fbba2eba101af3470
0b9a67cd5a3c6a909aab7d441ddafa8da35eebd4
[MISC] Add register-only tiled cholesky, and incremental H patching, for performance.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/contributing/PULL_REQUESTS.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/...
diff --git a/genesis/engine/solvers/rigid/constraint/solver.py b/genesis/engine/solvers/rigid/constraint/solver.py index 523ea6aa45..6f8e4a2b84 100644 --- a/genesis/engine/solvers/rigid/constraint/solver.py +++ b/genesis/engine/solvers/rigid/constraint/solver.py @@ -2,6 +2,7 @@ import numpy as np import quadrants a...
18
15
2
[{"id": "G0", "claim": "Split register-only tiled Cholesky and incremental H patching into two different PRs, since the first is easier to review and the second requires more effort.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The test_cholesky_tiling re...
null
Genesis-Embodied-AI__genesis-world__2668
Genesis-Embodied-AI/genesis-world
2,668
defect
8aeddae57a2bbec9f578bb61ce5ee917e6ed6116
6c94eb43205778ed9a8ab09cc021c3a2b394ae68
[BUG FIX] Fix loading of GLB meshes missing normals or tex_coord.
## Description Add None checks before calling `len()` on `mesh_glb.normals` and `mesh_glb.tex_coord` in `parse_mesh_glb`. When loading Draco-compressed GLB files that only contain position and color data (without normals or texture coordinates), these attributes are `None`, causing a `TypeError: object of type 'NoneTy...
diff --git a/genesis/utils/gltf.py b/genesis/utils/gltf.py index a300d293a5..5d35767adf 100644 --- a/genesis/utils/gltf.py +++ b/genesis/utils/gltf.py @@ -334,8 +334,8 @@ def parse_mesh_glb(path, group_by_material, scale, is_mesh_zup, surface): ) points = mesh_glb.points ...
1
1
1
[{"id": "G0", "claim": "A unit test should be added for the Draco GLB files that lack normals or tex_coord, and such files should be shared so they can be uploaded to HuggingFace as test assets.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Genesis-Embodied-AI__genesis-world__2670
Genesis-Embodied-AI/genesis-world
2,670
defect
8aeddae57a2bbec9f578bb61ce5ee917e6ed6116
089bc6781d83d2c30cbd1b42067d7d8c5520648a
[BUG FIX] Fix sparse solve in building hessian.
<!-- Thanks for sending a pull request! Please: 1. Follow our contributor guidelines: https://github.com/Genesis-Embodied-AI/Genesis/blob/main/.github/contributing/PULL_REQUESTS.md 2. Prepare your PR according to the "Submitting Code Changes" section of https://github.com/Genesis-Embodied-AI/Genesis/blob/...
diff --git a/genesis/engine/solvers/rigid/constraint/solver.py b/genesis/engine/solvers/rigid/constraint/solver.py index 523ea6aa45..98d5da04ce 100644 --- a/genesis/engine/solvers/rigid/constraint/solver.py +++ b/genesis/engine/solvers/rigid/constraint/solver.py @@ -16,6 +16,28 @@ from . import backward as backward_co...
13
13
0
[{"id": "G0", "claim": "Use the project's own tensor_to_array helper instead of .cpu().numpy().flatten(), since flattening is irrelevant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inline the _build_panda_table_scene helper directly in the u...
null
Genez-io__genezio__1214
Genez-io/genezio
1,214
defect
080182c8385cd3fb4f42b34fd7d3675f5a7ff4c2
498b630fd1f3e437cb1390470ec00bdcac014266
[nextjs] Add smart asset path pattern generation to avoid route collisions
# Pull Request Template <!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/main/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/main/CODE_OF_CONDUCT.md - Pro...
diff --git a/src/commands/deploy/command.ts b/src/commands/deploy/command.ts index 65a68be3c..19a76ee82 100644 --- a/src/commands/deploy/command.ts +++ b/src/commands/deploy/command.ts @@ -3,7 +3,7 @@ import { interruptLocalProcesses } from "../../utils/localInterrupt.js"; import { debugLogger } from "../../utils/logg...
1
1
0
[{"id": "G0", "claim": "Add an explicit return type to the mergeFsTrees function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Genez-io__genezio__1237
Genez-io/genezio
1,237
defect
1c15820270d62bcd5ac858fcf433609abe14e3ca
67bea468fae268a071ef2fa6610ad179e51690f3
Export api urls yaml
# Pull Request Template <!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/main/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/main/CODE_OF_CONDUCT.md ...
diff --git a/src/commands/deploy/genezio.ts b/src/commands/deploy/genezio.ts index 0d588cec5..cc4762754 100644 --- a/src/commands/deploy/genezio.ts +++ b/src/commands/deploy/genezio.ts @@ -54,7 +54,7 @@ import { } from "../../utils/jsProjectChecker.js"; import { YamlConfigurationIOController } from "../../yamlProject...
5
4
0
[{"id": "G0", "claim": "The test file should mirror the src directory structure, living at tests/utils/scripts/expandVariablesFromScript.test.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The match loop should be flattened to 'for (const ma...
null
Genez-io__genezio__1308
Genez-io/genezio
1,308
defect
806735cf4d62af04bf4c1ad7116eeb1743930f98
0d68c69952cb2c6f0993385fe05b97b3ab106e38
Add backend.environment to the configuration file
# Pull Request Template <!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/main/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/main/CODE_OF_CONDUCT.md ...
diff --git a/src/commands/deploy/genezio.ts b/src/commands/deploy/genezio.ts index a6e49409e..c6e9cfc87 100644 --- a/src/commands/deploy/genezio.ts +++ b/src/commands/deploy/genezio.ts @@ -542,7 +542,14 @@ export async function deployClasses( const cwd = projectConfiguration.workspace?.backend ? p...
1
1
1
[{"id": "G0", "claim": "`envPath` points directly to the env file, so `path.join(envPath, \".env\")` is unnecessary and builds the wrong path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Genez-io__genezio__145
Genez-io/genezio
145
defect
4f00e1767a8dcdd36233fc62996de7d08dc36869
b649718547339c911457a8b2ae6fa106b7dfc86c
Convert non-standard crons to standard crons for local deployment
`2/5 * * * *` is a non-standard cron string as per https://crontab.guru/#2/5_*_*_*_* . The `node-cron` library doesn't support this format, although both Windows, Linux and AWS Lambda support it. The easiest solution was to detect these strings when deploying locally, and convert them to standard cron strings that have...
diff --git a/src/localEnvironment.ts b/src/localEnvironment.ts index 90d97650d..749470bd7 100644 --- a/src/localEnvironment.ts +++ b/src/localEnvironment.ts @@ -100,7 +100,7 @@ export async function listenForChanges( const cwd = process.cwd(); let sdkPath: any = null; - + if (sdkPathRelative) { sdkPat...
3
3
1
[{"id": "G0", "claim": "A comment should be added above the rectifyCronString method explaining what it does, because such tricks are considered hacky in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The use of .replace('7', '0') ...
null
Genez-io__genezio__447
Genez-io/genezio
447
defect
c714ca9667e6943224095bdedf1a45e29742073d
995f67b85f8d733ee3898425f7e4c7ca7899aaec
GNZ-1122 Add possibility to give the folder name in genezio init
# Pull Request Template ## Type of change - [x] 🧑‍💻 Improvement ## Description add genezio init <path> Example: if path = . add genezio.yaml in the same folder ## Checklist - [x] My code follows the contributor guidelines of this project; - [x] I have added tests; - [x] New and existing unit te...
diff --git a/.gitignore b/.gitignore index 61dc9ee26..e2aa8352e 100644 --- a/.gitignore +++ b/.gitignore @@ -138,3 +138,5 @@ dist **/__pycache__ **/.env* + +.idea \ No newline at end of file diff --git a/src/commands/init.ts b/src/commands/init.ts index f6005bd90..f6038a0c0 100644 --- a/src/commands/init.ts +++ b/s...
1
1
0
[{"id": "G0", "claim": "The help text for the init command's path argument should say the path is where the project will be created rather than where the genezio.yaml file is generated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Genez-io__genezio__546
Genez-io/genezio
546
defect
1c52c02b70dcd4354d10db78e4943afccff18726
8bfa71db383321d088514fa95714479ac16a5623
Fix some ESLint errors
<!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/master/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/master/CODE_OF_CONDUCT.md - Provide tests for your...
diff --git a/src/bundlers/bundler.interface.ts b/src/bundlers/bundler.interface.ts index de8a16de6..71ae75f9c 100644 --- a/src/bundlers/bundler.interface.ts +++ b/src/bundlers/bundler.interface.ts @@ -1,5 +1,6 @@ import { ClassConfiguration, ProjectConfiguration } from "../models/projectConfiguration.js"; import { Pr...
2
2
0
[{"id": "G0", "claim": "In generateSdk, do not drop the error from `import(plugin).catch()`: keep the `err` parameter and display it via `debugLogger.debug()` for verbose output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In GenezioTelemetry...
null
Genez-io__genezio__594
Genez-io/genezio
594
defect
d8a7e9b39ad4e00bc8516c30a3180e0140e4e132
621494f1e083a98773cf4afca521c8bb9009f03e
Improve genezio error handling
# Pull Request Template <!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/master/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/master/CODE_OF_CONDUCT.m...
diff --git a/src/commands/account.ts b/src/commands/account.ts index 23f28189a..91353d6f9 100644 --- a/src/commands/account.ts +++ b/src/commands/account.ts @@ -1,14 +1,9 @@ -import log from "loglevel"; -import { exit } from "process"; import { GENEZIO_NOT_AUTH_ERROR_MSG } from "../errors.js"; import { getAuthToken }...
7
7
0
[{"id": "G0", "claim": "The .catch((error) => { throw error; }) wrapper around `await listProjects()` in deleteProjectHandler is unnecessary because awaited async calls already throw, so it should be reverted to a plain await.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
Genez-io__genezio__660
Genez-io/genezio
660
defect
d69f6615a41836b067b7aff16e9f01e564c04090
c4cb674daa0223bd06b77d17cf5e9b2342faf5e5
Check Yaml Configuration correctness using Zod
<!-- Before submitting a Pull Request, please ensure you've done the following: - Read the Genezio Contributing Guide: https://github.com/Genez-io/genezio/blob/main/CONTRIBUTING.md - Read the Genezio Code of Conduct: https://github.com/Genez-io/genezio/blob/main/CODE_OF_CONDUCT.md - Provide tests for your cha...
diff --git a/package-lock.json b/package-lock.json index 83131746f..21ae2439f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@babel/preset-env": "^7.23.5", "@babel/preset-typescript": "^7.23.3", "@babel/traverse": "^7.23.5", - ...
5
5
5
[{"id": "G0", "claim": "The nodeRuntime option should keep its default value of `nodejs16.x` under the new zod schema.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The subdomain field should be validated so that a valid subdomain contains only let...
null
GenomicsDB__GenomicsDB__111
GenomicsDB/GenomicsDB
111
defect
9e6191a502e2cc7d28c15ce12bdaf1034b99bae6
62af31631efd272ad1d160ac93ce29451a180b97
Fix issues with propagating polymorphic std::exception code
* Change `logger.fatal` to be a template for the std::exception argument as the polymorphic context is lost in subsequent re-throws of std::exception. * Introduced env variable `GENOMICSDB_PRINT_STACKTRACE` to print a stack trace especially from JNI or other language bindings where the exceptions are caught and propag...
diff --git a/src/main/cpp/include/utils/logger.h b/src/main/cpp/include/utils/logger.h index 369b025ea..0354de819 100644 --- a/src/main/cpp/include/utils/logger.h +++ b/src/main/cpp/include/utils/logger.h @@ -38,10 +38,14 @@ #include <spdlog/fmt/fmt.h> #include <exception> +#include <execinfo.h> #include <list> #...
1
1
0
[{"id": "G0", "claim": "Catching the exception by value (std::exception e) instead of by const reference loses the exception's sub-class information, which a const std::exception& catch would have preserved, and matters once the Java exception is thrown.", "category": "correctness", "verdict": "supported", "priority": ...
null
GenomicsDB__GenomicsDB__131
GenomicsDB/GenomicsDB
131
defect
11d915c70c78817ebefb9d74ff1b07dab963346b
4e06670365bca5187f050c8ec9ac8a8d94e32190
Annotation service created using HTSLib
These changes add the vcf annotation service to GenomicsDB. * I modified the signature of a few functions in genomicsdb.h. Seems like that may not be ok. * I didn't end up implementing the map we discussed for storing/cacheing annotation values. * When I view the VariantCall.genomicFields map from within Genomics...
diff --git a/src/main/cpp/include/api/genomicsdb.h b/src/main/cpp/include/api/genomicsdb.h index 0469d9ddc..a93a9316a 100644 --- a/src/main/cpp/include/api/genomicsdb.h +++ b/src/main/cpp/include/api/genomicsdb.h @@ -44,6 +44,8 @@ #include <typeinfo> #include <vector> +#include "genomicsdb_export_config.pb.h" + //...
7
4
1
[{"id": "G0", "claim": "Remove the leftover jDebug comment and the commented-out get/set_annotation_service declarations from genomicsdb_config_base.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out regidx_init call (leftover i...
null
GenomicsDB__GenomicsDB__158
GenomicsDB/GenomicsDB
158
defect
e50627095a05cdd59b647b0b61b6ffc94187b28f
d406a2958874a0888f0aecd466cc1e1ac686ad15
Tool vcf2genomicsdb_init to create initial set of json files and workspace
Tool `vcf2genomicsdb_init` to create initial set of vidmap/callset/loader json files in a workspace. Some fixes to make protobuf and json parsing with rapidjson consistent with each other as the `vcf2genomicsdb_init` uses protobuf, but json_config still gets used for parsing the vidmap/callset/loader json files. `vcf2g...
diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 101ffdaf9..5b621c35a 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -15,6 +15,7 @@ env: SPARK_ENV: ${{github.workspace}}/spark_env.sh HADOOP_ENV: ${{github.workspace}}/hadoop_env.sh PREREQS_INSTALL_DIR: ...
2
2
1
[{"id": "G0", "claim": "In add_contigs, if the for-loop ends while still in processing_scaffold mode, the code may fail to create a final partition for the accumulated scaffold (and skips the offset advance since tiledb_column_offset += length only runs when not processing_scaffold).", "category": "correctness", "verdi...
null
GenomicsDB__GenomicsDB__250
GenomicsDB/GenomicsDB
250
defect
9ac891cdd02890733619e8e92c42c651efa06757
3f14ed9ac6a8bed17a1adadd7f4f8cca1ec49584
First pass at implementing a bypass mechanism for intersecting intervals mode for fast, fuzzy queries based on just simple traversal
Rationale behind this bypass mechanism is as follows (thanks @mlathara) - - in most (all?) cohort queries by genes, there is usually some padding in the regions for the gene and that should suffice to return all the sites that are relevant. this is especially true for omics data from clinical testing - for specific m...
diff --git a/src/main/cpp/include/config/genomicsdb_config_base.h b/src/main/cpp/include/config/genomicsdb_config_base.h index 2bab1778a..f5bc5affe 100644 --- a/src/main/cpp/include/config/genomicsdb_config_base.h +++ b/src/main/cpp/include/config/genomicsdb_config_base.h @@ -133,6 +133,9 @@ class GenomicsDBConfigBase ...
5
5
3
[{"id": "G0", "claim": "Add tests around what the bypass mode is expected to find or miss — a region completely spanned by an indel, regions overlapping the start or end, and a SNP query whose result should match the non-bypass mode — so the expected behaviour is documented by tests.", "category": "testing", "verdict":...
null
GenomicsDB__GenomicsDB__266
GenomicsDB/GenomicsDB
266
defect
2fed4260644d94f090947854e2cb7680955221bb
52638bd463fce0a727fa5bac76f5f1794b8efe9b
Expose some of the TileDB filesystem functionality in GenomicsDB for use in Python/R and probably Java bindings
Introduced a `genomicsdb_utils api` for accessing TileDB filesystem functionality from other languages. Only functions needed by `GDBPythonAPI` are wrapped for now to replace `fsspec`. 1. Introduced a `genomicsdb` namespace to define utility functions and to avoid clashes with other similarly named functions. 2. Depr...
diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index e6c2222c0..d31ab7daa 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -68,6 +68,7 @@ set(GenomicsDB_library_sources cpp/src/api/genomicsdb.cc cpp/src/api/genomicsdb_field.cc cpp/src/api/genomicsdb_plink.cc + cpp/...
1
1
0
[{"id": "G0", "claim": "Fix the typo — the PR added an extra `1` character in `configuration` in the doc comment for query_configuration_type.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GenomicsDB__GenomicsDB__318
GenomicsDB/GenomicsDB
318
defect
67d6ca04d2dc08d70d1fe29b76ed45d299ac8f83
3d7c0e019a81e31739356ff1d7e8cb9bcaacff22
Support JSON output from genomicsdb api query_variant_calls()
Implemented a JSON processor in the native GenomicsDB layer to generate JSON files for queries emanating from REST interfaces. 4 modes are currently supported, 1. `all` gets all the information for the attributes queried in addition to resolving GT w.r.t REF and ALT ```{"HG00141":{"CHR":["1","1"],"POS":[12141,17385]...
diff --git a/dependencies/TileDB b/dependencies/TileDB index 9919ca39..0a11b52d 160000 --- a/dependencies/TileDB +++ b/dependencies/TileDB @@ -1 +1 @@ -Subproject commit 9919ca39bb4202b0aa8be77675b5f7f093aa2351 +Subproject commit 0a11b52d25fa90bc849f3198063d4ee2131fd25f diff --git a/src/main/CMakeLists.txt b/src/main/C...
3
3
0
[{"id": "G0", "claim": "Use rapidjson's JSON null data type for missing genomic-field values instead of the \".\" string placeholder.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variable field_type in JSONVariantCallProcessor::process(const interv...
null
GenomicsDB__GenomicsDB__344
GenomicsDB/GenomicsDB
344
defect
87237c17693912fa9350822d93804ba75634fe82
30b3a76fe1f2659124f91cd997d350624d391942
Non fixed fields
This fixes a subtle issue around non fixed fields (i.e., fields whose number/length is dependent on the number of alleles, genotypes, etc). I also tried to change some of the json processing initialization code in an attempt to avoid a nested loop over the fields everytime we process -- but the result looks a bit u...
diff --git a/src/main/cpp/include/api/genomicsdb.h b/src/main/cpp/include/api/genomicsdb.h index d27e9c40..db17481b 100644 --- a/src/main/cpp/include/api/genomicsdb.h +++ b/src/main/cpp/include/api/genomicsdb.h @@ -181,7 +181,7 @@ typedef struct genomic_field_t { output = output + separator; } ...
4
4
0
[{"id": "G0", "claim": "The prototype block for create_genomic_field_types declared above JSONVariantCallProcessor's constructor is not used there and should be removed from this location.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the ju...
null