Skip to content
Snippets Groups Projects

Count likelihood evaluations

Merged Philipp Arras requested to merge counting into NIFTy_8
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
18 import numpy as np
19 import pytest
20
21 import nifty8 as ift
22
23 from ..common import list2fixture, setup_function, teardown_function
24
25
26 def test_counting_operator():
27 dom = ift.UnstructuredDomain(2)
28 inp = ift.Operator.identity_operator(dom)
29
30 counting = ift.CountingOperator(dom)
31 op = inp.exp() @ counting
32
33 assert counting.count_apply == 0
  • Philipp Arras added 1 commit

    added 1 commit

    • e30b8e3a - CountingOperator tests: assert -> assert_equal

    Compare with previous version

  • Author Contributor

    Let us please wait with merging for a bit. I need to improve something.

  • Philipp Arras marked this merge request as draft

    marked this merge request as draft

  • Philipp Arras added 1 commit

    added 1 commit

    • e63d8381 - CountingOperator: Add simplify_for_constant_input

    Compare with previous version

  • Philipp Arras added 1 commit

    added 1 commit

    • c867268a - CountingOperator: improve test

    Compare with previous version

  • Philipp Arras marked this merge request as ready

    marked this merge request as ready

  • Author Contributor

    Okay, now I am ready

  • Martin Reinecke enabled an automatic merge when the pipeline for c867268a succeeds

    enabled an automatic merge when the pipeline for c867268a succeeds

  • Martin Reinecke mentioned in commit e782e456

    mentioned in commit e782e456

  • Please register or sign in to reply
    Loading