-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NDLAr Specific Additions (Included in latest MicroProd
)
#252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but if I understand correctly, you've uncovered a bug that also affects the mod2mod_variation
(i.e. 2x2) case. Namely, if we sub-batch a batch that belongs to the trig_module
, then we'll write out multiple copies of the light triggers. Would a more general fix be as simple as doing the following?
if is_new_event and (light.LIGHT_TRIG_MODE == 0 or light.LIGHT_TRIG_MODE == 1) and (i_mod == trig_module or i_mod == -1)
Hi @alexbooth92 @mjkramer, |
Thanks for the explanation @YifanC - I must say that I was a little confused when I was sorting out the merge conflicts. I haven't tested your fix but from a brief look I think it does the trick. I have remove any trace of my version of the fix and the "duplicate" |
@alexbooth92 The current
|
Thank you for looking! You absolutely need the except key error as I have it to be able to run with So yes, in |
A couple of commits that featured in the latest NDLAr
MicroProds
introducing two things. Want to bring these into develop.mod2mod_variation
mode. The reason being you don't want to set your "trigger module" to minus 1. See logic at line 860 ofsimulate_pixels
.