lava icon indicating copy to clipboard operation
lava copied to clipboard

No data after runtime pause

Open epaxon opened this issue 3 years ago • 3 comments

Objective of issue:

Lava version:

  • [x] 0.4.0 (current version)

I'm submitting a ...

  • [x] bug report

Current behavior:

  • I'm creating a process that halts runtime when a condition is reached. Runtime halts, but the data and variables within the process are all None type

Expected behavior:

  • Data and variables within process are still accessible

Steps to reproduce:

  • (inside of run_spk()):
  • if condition: self.pause()
  • (in jupyter notebook):
  • var.v.get() -- returns None

Related code:

insert short code snippets here

Other information:

insert the output from lava debug here

epaxon avatar Aug 03 '22 20:08 epaxon

@ysingh7 this seems like a bug. When we pause() from within a PyProcModel, state should be preserved. If this is currently just not implemented an error message should say so and where the problem arises.

awintel avatar Aug 03 '22 20:08 awintel

@epaxon Can you please post the code snippet using which I can reproduce this error?

ysingh7 avatar Aug 03 '22 22:08 ysingh7

@epaxon @ysingh7 is this still relevant?

PhilippPlank avatar Sep 13 '22 16:09 PhilippPlank