Skip to content

Commit 35a92ac

Browse files
authored
Merge pull request #315 from mitodl/rebuild
Bumping version and repackaging scripts
2 parents 4bf081d + e96e981 commit 35a92ac

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
A library of graders for edX Custom Response problems.
66

7-
Version 2.3.2 ([changelog](docs/changelog.md))
7+
Version 2.3.3 ([changelog](docs/changelog.md))
88

9-
Copyright 2017-2021 Jolyon Bloomfield and Chris Chudzicki
9+
Copyright 2017-2022 Jolyon Bloomfield and Chris Chudzicki
1010

1111
Licensed under the [BSD-3 License](LICENSE).
1212

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This is a major new version with many new features added. We have been very care
66

77
## Version 2.3
88

9+
### Version 2.3.3
10+
11+
* Refactored sampling to allow sibling variables to be used in `DependentSampler`s.
12+
913
### Version 2.3.2
1014

1115
* Fixed a bug where long integers passed in as a variable (via `DiscreteSet`) or user-defined constant would cause an error in evaluation (such numbers are now cast as floats).

docs/grading_math/sampling.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Sample from any discrete set of values that are specified in a tuple. A single v
242242

243243
### DependentSampler
244244

245-
Compute a value for a variable based on the values of other constants/variables. The sampler is simply initialized with the desired formula, which can use any base or user-defined functions (except for randomly sampled functions, see below). `DependentSampler`s can depend on other dependent variables. If you construct a self-referential chain, an error will occur. Note that `DependentSampler` can depend on vector/matrix quantities as well as scalars.
245+
Compute a value for a variable based on the values of other constants/variables. The sampler is simply initialized with the desired formula, which can use any base or user-defined functions (except for randomly sampled functions, see below). `DependentSampler`s can depend on other dependent variables. If you construct a self-referential chain, an error will occur. Note that `DependentSampler` can depend on vector/matrix quantities as well as scalars. You can even use sibling variables in a `DependentSampler`.
246246

247247
```pycon
248248
>>> # Set radius based on the random values of x, y and z
@@ -310,3 +310,6 @@ Finally, if you want to generate a complex random function, set `complex=True`.
310310
>>> functionsampler = RandomFunction(complex=True)
311311

312312
```
313+
314+
!!! Note
315+
- You cannot invoke a random functions within a `DependentSampler`. This is a limitation of the way that we have implemented random functions.

mitxgraders/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"""
55
from __future__ import print_function, division, absolute_import, unicode_literals
66

7-
__version__ = "2.3.2"
7+
__version__ = "2.3.3"

python_lib.zip

139 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)