Skip to content

Adjust ae_determine_receptor_ids_from_receptor_with_radius#21

Merged
BertScholten merged 1 commit into
aerius:mainfrom
BertScholten:avoid_receptor_id_0
Jun 3, 2026
Merged

Adjust ae_determine_receptor_ids_from_receptor_with_radius#21
BertScholten merged 1 commit into
aerius:mainfrom
BertScholten:avoid_receptor_id_0

Conversation

@BertScholten
Copy link
Copy Markdown
Member

Function is adjusted to no longer return 0 as receptor_id.
Turns out, with a receptor_id of 3907993, and a radius of 1409, the adjusted unittest would fail. This because 0 would be returned, and since that doesn't really hold with the assumption of the test adjusted the function to void this (0 isn't a receptor ID we want in any case).

Unfortunately the test didn't supply the radius directly and is using random numbers, so had to create a query that would do all radius values between 1 and 1530 to figure out the value that was causing the error...

Function is adjusted to no longer return 0 as receptor_id.
Turns out, with a receptor_id of 3907993, and a radius of 1409, the adjusted unittest would fail. This because 0 would be returned, and since that doesn't really hold with the assumption of the test adjusted the function to void this (0 isn't a receptor ID we want in any case).

Unfortunately the test didn't supply the radius directly and is using random numbers, so had to create a query that would do all radius values between 1 and 1530 to figure out the value that was causing the error...
Copy link
Copy Markdown
Contributor

@JacobusXIII JacobusXIII left a comment

Choose a reason for hiding this comment

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

LGTM

@BertScholten BertScholten merged commit 411b13d into aerius:main Jun 3, 2026
@BertScholten BertScholten deleted the avoid_receptor_id_0 branch June 3, 2026 10:41
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