Skip to content

Commit

Permalink
reopen image_in_port
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Stolker committed Jun 26, 2019
1 parent 7e46286 commit 26e3bbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pynpoint/processing/fluxposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ def run(self) -> None:
im_shape = self.m_image_in_port.get_shape()[-2:]

self.m_image_in_port.close_port()
self.m_psf_in_port.close_port()

if psf.shape[0] != 1 and psf.shape[0] != images.shape[0]:
raise ValueError('The number of frames in psf_in_tag does not match with the number of '
Expand Down Expand Up @@ -830,7 +831,9 @@ def run(self) -> None:
sys.stdout.write('Running MCMCsamplingModule... [DONE]\n')
sys.stdout.flush()

self.m_image_in_port._check_status_and_activate()
self.m_chain_out_port._check_status_and_activate()

self.m_chain_out_port.set_all(sampler.chain)

history = f'walkers = {self.m_nwalkers}, steps = {self.m_nsteps}'
Expand Down

0 comments on commit 26e3bbc

Please sign in to comment.