Skip to content

Commit

Permalink
Fix tests that still used multiplicative normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Mar 5, 2020
1 parent 62e0fcb commit ca54de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brian2modelfitting/tests/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_get_features_gamma():
features = gf.get_features(model_spikes, data_spikes, 0.1*ms)
assert_equal(np.shape(features), (2, 2))
assert(np.all(np.array(features) > -1))
normed_gf = GammaFactor(delta=0.5 * ms, time=10 * ms, normalization=2.)
normed_gf = GammaFactor(delta=0.5 * ms, time=10 * ms, normalization=1/2.)
normed_features = normed_gf.get_features(model_spikes, data_spikes,
0.1 * ms)
assert_equal(normed_features, 2*features)
Expand Down
2 changes: 1 addition & 1 deletion brian2modelfitting/tests/test_modelfitting_tracefitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_fitter_refine_direct(setup):
# The algorithm is deterministic and should therefore give the same result
# for the second run
params, result = tf.refine({'g': 5 * nS}, g=[1 * nS, 30 * nS],
normalization=2)
normalization=1/2)
assert result.chisqr == 4 * error


Expand Down

0 comments on commit ca54de7

Please sign in to comment.