Skip to content

Commit

Permalink
documentation; testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gplepage committed May 12, 2022
1 parent 3cbf0e0 commit ffe04e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Version 11.10 2022-05-12
=========================
Adds the possibility of phasing the construction of a set
of correlated GVars. gvar(ymean, ycov, x, xycov) returns
primary GVars y that have covariance matrix ycov and
covariance matrix xycov with previously defined
primary GVars x. The first and third arguments
(ymean and x) are 1-d arrays; the other two are
2-d arrays.

Version 11.9.7 2022-05-01
==========================
Thanks to Giacomo Petrillo for these ideas and issues.
Expand Down
2 changes: 2 additions & 0 deletions tests/test_gvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,10 @@ def test_phased_construction(self):
mean = numpy.linspace(0, 1., 100)
g = gvar(mean, cov)
h = gvar('1(8)')
z = g[0] + g[1] # function of g evaluated before m defined but will be correlated
gmcov = np.linspace(0.,1., 100).reshape(1,-1)
m = gvar(mean, cov, [g[0]], gmcov)
assert_almost_equal(evalcov([z, m[-1]])[0, 1],gmcov[0, -1])
ghm = BufferDict(g=g, h=h, m=m)
ghmcov = evalcov(ghm)
assert_almost_equal(ghmcov['g', 'g'], cov)
Expand Down

0 comments on commit ffe04e9

Please sign in to comment.