Skip to content

Commit

Permalink
SET_IO PTR REMOVED FROM PROB
Browse files Browse the repository at this point in the history
  • Loading branch information
mathematicalmichael committed Apr 30, 2019
1 parent 574c695 commit 40a7267
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bet/calculateP/calculateP.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def prob_on_emulated_samples(discretization, globalize=True):
discretization._emulated_input_sample_set.check_num()

# Check for necessary properties
if discretization._io_ptr_local is None:
discretization.set_io_ptr(globalize=True)
# if discretization._io_ptr_local is None:
# discretization.set_io_ptr(globalize=True)
if discretization._emulated_ii_ptr_local is None:
discretization.set_emulated_ii_ptr(globalize=False)

Expand Down Expand Up @@ -85,8 +85,8 @@ def prob(discretization, globalize=True):
op_num = discretization._output_probability_set.check_num()

# Check for necessary attributes
if discretization._io_ptr_local is None:
discretization.set_io_ptr(globalize=False)
# if discretization._io_ptr_local is None:
# discretization.set_io_ptr(globalize=False)

# Calculate Probabilities
if discretization._input_sample_set._values_local is None:
Expand Down
2 changes: 2 additions & 0 deletions bet/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -2339,6 +2339,8 @@ def __init__(self, input_sample_set, output_sample_set,

if output_sample_set is not None:
self.check_nums()
if output_probability_set is not None:
self.set_io_ptr()
else:
logging.info("No output_sample_set")

Expand Down

0 comments on commit 40a7267

Please sign in to comment.