Skip to content

Commit 9b3244a

Browse files
authored
Merge pull request #418 from AllenNeuralDynamics/dev
Implement Dataverse picker
2 parents aa54002 + a8ceadb commit 9b3244a

File tree

17 files changed

+822
-335
lines changed

17 files changed

+822
-335
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
* text=auto
22
*.cmd text eol=crlf
33
*.bat text eol=crlf
4-
*.bonsai text
4+
*.bonsai text

.github/workflows/vr-foraging-cicd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,13 @@ jobs:
9292
enable-cache: true
9393

9494
- name: Bump pre-release by default
95-
run: uv version --bump rc
96-
95+
shell: bash
96+
run: |
97+
if uv version --bump rc --dry-run; then
98+
uv version --bump rc
99+
else
100+
uv version --bump rc --bump patch
101+
fi
97102
- name: Regenerate schemas
98103
run: uv run vr-foraging regenerate
99104

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aind-vr-foraging
22

3-
![CI](https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/actions/workflows/ci.yml/badge.svg)
3+
![CI](https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/actions/workflows/vr-foraging-cicd.yml/badge.svg)
44
[![PyPI - Version](https://img.shields.io/pypi/v/aind-behavior-vr-foraging)](https://pypi.org/project/aind-behavior-vr-foraging/)
55
[![License](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)
66
[![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

examples/clabe.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ default_behavior_picker:
1717
curriculum:
1818
script: "curriculum run"
1919
project_directory: "./src/aind_behavior_vr_foraging/curricula/aind.Behavior.VrForaging.Curricula"
20+
21+
dataverse:
22+
tenant_id: "32669cd6-737f-4b39-8bdd-d6951120d3fc"
23+
client_id: "df37356e-3316-484a-b732-319b6b4ad464"
24+
org: "org5d93e08d"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Changelog = "https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/rel
3131
data = ["contraqctor<0.5.0"]
3232

3333
launcher = [
34-
"aind-clabe[aind-services]",
35-
"aind-data-schema>2",
34+
"aind-clabe[aind-services]>=0.7",
35+
"aind-data-schema>=2",
3636
"aind_behavior_vr_foraging[data]",
3737
]
3838

src/DataSchemas/aind_behavior_vr_foraging.json

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,29 @@
33
"AindBehaviorSessionModel": {
44
"properties": {
55
"aind_behavior_services_pkg_version": {
6-
"default": "0.12.1",
6+
"default": "0.12.2",
77
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
88
"title": "aind_behavior_services package version",
99
"type": "string"
1010
},
1111
"version": {
12-
"const": "0.3.1",
13-
"default": "0.3.1",
12+
"const": "0.12.2",
13+
"default": "0.12.2",
1414
"title": "Version",
1515
"type": "string"
1616
},
1717
"experiment": {
18+
"default": null,
1819
"description": "Name of the experiment",
19-
"title": "Experiment",
20-
"type": "string"
20+
"oneOf": [
21+
{
22+
"type": "string"
23+
},
24+
{
25+
"type": "null"
26+
}
27+
],
28+
"title": "Experiment"
2129
},
2230
"experimenter": {
2331
"default": [],
@@ -41,7 +49,7 @@
4149
},
4250
"session_name": {
4351
"default": null,
44-
"description": "Name of the session. This will be used to create a folder in the root path.",
52+
"description": "Name of the session. This will be used to create a folder in the root path. If not provided, it will be generated using subject and date.",
4553
"oneOf": [
4654
{
4755
"type": "string"
@@ -58,6 +66,8 @@
5866
"type": "string"
5967
},
6068
"experiment_version": {
69+
"default": "",
70+
"deprecated": true,
6171
"description": "Version of the experiment",
6272
"title": "Experiment Version",
6373
"type": "string"
@@ -102,10 +112,8 @@
102112
}
103113
},
104114
"required": [
105-
"experiment",
106115
"root_path",
107-
"subject",
108-
"experiment_version"
116+
"subject"
109117
],
110118
"title": "AindBehaviorSessionModel",
111119
"type": "object"
@@ -345,7 +353,7 @@
345353
"AindVrForagingRig": {
346354
"properties": {
347355
"aind_behavior_services_pkg_version": {
348-
"default": "0.12.1",
356+
"default": "0.12.2",
349357
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
350358
"title": "aind_behavior_services package version",
351359
"type": "string"
@@ -603,7 +611,7 @@
603611
"title": "Rng Seed"
604612
},
605613
"aind_behavior_services_pkg_version": {
606-
"default": "0.12.1",
614+
"default": "0.12.2",
607615
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
608616
"title": "aind_behavior_services package version",
609617
"type": "string"
@@ -739,6 +747,7 @@
739747
"type": "object"
740748
},
741749
"BetaDistribution": {
750+
"description": "A beta probability distribution.\n\nContinuous distribution bounded between 0 and 1. Commonly used\nfor modeling probabilities and proportions.",
742751
"properties": {
743752
"family": {
744753
"const": "Beta",
@@ -784,6 +793,7 @@
784793
"type": "object"
785794
},
786795
"BetaDistributionParameters": {
796+
"description": "Parameters for a beta distribution.\n\nDefined by alpha and beta shape parameters.",
787797
"properties": {
788798
"family": {
789799
"const": "Beta",
@@ -810,6 +820,7 @@
810820
"type": "object"
811821
},
812822
"BinomialDistribution": {
823+
"description": "A binomial probability distribution.\n\nModels the number of successes in a fixed number of independent\nBernoulli trials with constant success probability.",
813824
"properties": {
814825
"family": {
815826
"const": "Binomial",
@@ -855,6 +866,7 @@
855866
"type": "object"
856867
},
857868
"BinomialDistributionParameters": {
869+
"description": "Parameters for a binomial distribution.\n\nDefined by number of trials (n) and success probability (p).",
858870
"properties": {
859871
"family": {
860872
"const": "Binomial",
@@ -1646,6 +1658,7 @@
16461658
"type": "object"
16471659
},
16481660
"ExponentialDistribution": {
1661+
"description": "An exponential probability distribution.\n\nModels time between events in a Poisson process. Commonly used\nfor wait times and inter-event intervals.",
16491662
"properties": {
16501663
"family": {
16511664
"const": "Exponential",
@@ -1690,6 +1703,7 @@
16901703
"type": "object"
16911704
},
16921705
"ExponentialDistributionParameters": {
1706+
"description": "Parameters for an exponential distribution.\n\nDefined by the rate parameter (inverse of mean).",
16931707
"properties": {
16941708
"family": {
16951709
"const": "Exponential",
@@ -1709,6 +1723,7 @@
17091723
"type": "object"
17101724
},
17111725
"GammaDistribution": {
1726+
"description": "A gamma probability distribution.\n\nGeneralizes the exponential distribution. Used for modeling\npositive continuous variables with right-skewed distributions.",
17121727
"properties": {
17131728
"family": {
17141729
"const": "Gamma",
@@ -1754,6 +1769,7 @@
17541769
"type": "object"
17551770
},
17561771
"GammaDistributionParameters": {
1772+
"description": "Parameters for a gamma distribution.\n\nDefined by shape (k) and rate (\u03b8\u207b\u00b9) parameters.",
17571773
"properties": {
17581774
"family": {
17591775
"const": "Gamma",
@@ -2245,6 +2261,7 @@
22452261
"type": "object"
22462262
},
22472263
"LogNormalDistribution": {
2264+
"description": "A log-normal probability distribution.\n\nDistribution where the logarithm of the variable is normally distributed.\nAlways produces positive values and is right-skewed.",
22482265
"properties": {
22492266
"family": {
22502267
"const": "LogNormal",
@@ -2290,6 +2307,7 @@
22902307
"type": "object"
22912308
},
22922309
"LogNormalDistributionParameters": {
2310+
"description": "Parameters for a log-normal distribution.\n\nDefined by the mean and standard deviation of the underlying normal distribution.",
22932311
"properties": {
22942312
"family": {
22952313
"const": "LogNormal",
@@ -2473,6 +2491,7 @@
24732491
"type": "object"
24742492
},
24752493
"NormalDistribution": {
2494+
"description": "A normal (Gaussian) probability distribution.\n\nBell-shaped distribution symmetric around the mean, commonly used\nfor modeling naturally occurring random variables.",
24762495
"properties": {
24772496
"family": {
24782497
"const": "Normal",
@@ -2518,6 +2537,7 @@
25182537
"type": "object"
25192538
},
25202539
"NormalDistributionParameters": {
2540+
"description": "Parameters for a normal (Gaussian) distribution.\n\nDefined by mean (center) and standard deviation (spread).",
25212541
"properties": {
25222542
"family": {
25232543
"const": "Normal",
@@ -3611,6 +3631,7 @@
36113631
"type": "object"
36123632
},
36133633
"PdfDistribution": {
3634+
"description": "A custom probability density function distribution.\n\nAllows defining arbitrary discrete distributions by specifying\nprobability values and their corresponding indices.",
36143635
"properties": {
36153636
"family": {
36163637
"const": "Pdf",
@@ -3660,6 +3681,7 @@
36603681
"type": "object"
36613682
},
36623683
"PdfDistributionParameters": {
3684+
"description": "Parameters for a custom probability density function distribution.\n\nDefined by explicit probability values and their corresponding indices.\nProbabilities are automatically normalized to sum to 1.",
36633685
"properties": {
36643686
"family": {
36653687
"const": "Pdf",
@@ -3762,6 +3784,7 @@
37623784
"type": "object"
37633785
},
37643786
"PoissonDistribution": {
3787+
"description": "A Poisson probability distribution.\n\nModels the number of events occurring in a fixed interval of time or space\nwhen events occur independently at a constant rate.",
37653788
"properties": {
37663789
"family": {
37673790
"const": "Poisson",
@@ -3806,6 +3829,7 @@
38063829
"type": "object"
38073830
},
38083831
"PoissonDistributionParameters": {
3832+
"description": "Parameters for a Poisson distribution.\n\nDefined by the rate parameter (average number of events).",
38093833
"properties": {
38103834
"family": {
38113835
"const": "Poisson",
@@ -4040,6 +4064,7 @@
40404064
"type": "object"
40414065
},
40424066
"Scalar": {
4067+
"description": "A scalar distribution that returns a constant value.\n\nUseful for fixed parameters that don't vary across trials or samples.",
40434068
"properties": {
40444069
"family": {
40454070
"const": "Scalar",
@@ -4072,6 +4097,7 @@
40724097
"type": "object"
40734098
},
40744099
"ScalarDistributionParameter": {
4100+
"description": "Parameters for a scalar (constant) distribution.\n\nRepresents a deterministic value that always returns the same number.",
40754101
"properties": {
40764102
"family": {
40774103
"const": "Scalar",
@@ -4090,6 +4116,7 @@
40904116
"type": "object"
40914117
},
40924118
"ScalingParameters": {
4119+
"description": "Parameters for scaling and offsetting sampled distribution values.\nScaling is applied as (value * scale + offset).\n\nApplies linear transformation: result = (value * scale) + offset.",
40934120
"properties": {
40944121
"scale": {
40954122
"default": 1,
@@ -4970,13 +4997,8 @@
49704997
"type": "object"
49714998
},
49724999
"TruncationParameters": {
5000+
"description": "Parameters for truncating a distribution to a specified range. Truncation should\nbe applied after sampling and scaling.\n\nUsed to constrain sampled values within minimum and maximum bounds.",
49735001
"properties": {
4974-
"is_truncated": {
4975-
"default": false,
4976-
"description": "Whether the distribution is truncated",
4977-
"title": "Is Truncated",
4978-
"type": "boolean"
4979-
},
49805002
"min": {
49815003
"default": 0,
49825004
"description": "Minimum value of the sampled distribution",
@@ -4994,6 +5016,7 @@
49945016
"type": "object"
49955017
},
49965018
"UniformDistribution": {
5019+
"description": "A uniform probability distribution.\n\nAll values between min and max have equal probability of being sampled.",
49975020
"properties": {
49985021
"family": {
49995022
"const": "Uniform",
@@ -5039,6 +5062,7 @@
50395062
"type": "object"
50405063
},
50415064
"UniformDistributionParameters": {
5065+
"description": "Parameters for a uniform distribution.\n\nDefined by minimum and maximum bounds of the distribution.",
50425066
"properties": {
50435067
"family": {
50445068
"const": "Uniform",

0 commit comments

Comments
 (0)