Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

runMacro executed twice does not work anymore #1699

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

jkotan
Copy link
Collaborator

@jkotan jkotan commented Oct 7, 2021

At DESY we execute runMacro() twice on the same object.
However, after the change

https://github.com/sardana-org/sardana/pull/1476/files

it does not work anymore because you cannot delete an object from the macro_status dictionary which does not exist anymore.
Therefore if it is allowed to runMacro twice it would be good to check before deleting 'name' and 'macro_line' if they exist in the dictionary.
Otherwise if running macro twice it is forbidden (I hope not) It should be thrown an exception informing users that running macro twice is forbidden.

@jkotan
Copy link
Collaborator Author

jkotan commented Oct 7, 2021

Hi @reszelaz, do you know why the test fails? If I run the sardana-test in my docker locally everything works fine.

@jkotan
Copy link
Collaborator Author

jkotan commented Oct 7, 2021

it looks like in the first run of the PR I encountered a random event/macroexecutor error not related to the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant