Skip to content

fix: multi_port for free_water task#6

Merged
alexevag merged 3 commits into
ef-lab:mainfrom
GratsakisA:multi_port
May 11, 2026
Merged

fix: multi_port for free_water task#6
alexevag merged 3 commits into
ef-lab:mainfrom
GratsakisA:multi_port

Conversation

@GratsakisA
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@alexevag alexevag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic is correct: is_licking(reward=True) already filters to reward-capable ports, so reward_port == -1 only fires for valid licks.

Simplify the boolean / mirror is_correct() style

src/ethopy/behaviors/multi_port.py

licked_port = self.is_licking(since=tmst, reward=True)
reward_port = self.curr_cond["reward_port"]
if licked_port and (reward_port == -1 or licked_port == reward_port):

@alexevag alexevag merged commit cf3f479 into ef-lab:main May 11, 2026
1 check passed
@GratsakisA GratsakisA deleted the multi_port branch May 11, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants