# Stimulus hashing

**URL:** <https://mworks.discourse.group/t/stimulus-hashing/1020>\
**Category:** Support\
**Created:** [August 19, 2024, 3:49pm UTC](https://mworks.discourse.group/t/stimulus-hashing/1020 "2024-08-19T15:49:46Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [August 22, 2024, 2:25pm UTC](https://mworks.discourse.group/t/stimulus-hashing/1020/9 "2024-08-22T14:25:28Z")

</div>

Hi Yoon,

Your experiment code looks OK to me.

I did find it a little confusing that you’re using a variable named `reward_duration` to specify a _volume_ in milliliters to dispense via the syringe pump (and, in the actions attached to variable `reward`, waiting for that numeric amount of time). But I see that the value of `reward_duration` is `0.15us` (aka just 0.15), so if the intent is to dispense 0.15 mL as the reward, I believe everything should work correctly (and you’re not likely to care about the 15 microsecond wait when you assign to `reward`).

As to whether you want the image set repetitions to be independent (as they are now) or interleaved (like Chong did), that’s entirely up to you. Switching to the interleaved approach would require only minor changes to your experiment code, as detailed in [this discussion](https://mworks.discourse.group/t/mworks-repetitions-question/842). I can help you make that change, if you want to go that way.

Cheers,  
Chris

---

_[View the full topic](https://mworks.discourse.group/t/stimulus-hashing/1020)._
