Skip to content

Handle integer and double parameters passed to algorithms#29

Merged
dylanbstorey merged 1 commit intocolliery-io:mainfrom
kynx:algo-parameters
Mar 17, 2026
Merged

Handle integer and double parameters passed to algorithms#29
dylanbstorey merged 1 commit intocolliery-io:mainfrom
kynx:algo-parameters

Conversation

@kynx
Copy link
Copy Markdown
Contributor

@kynx kynx commented Mar 16, 2026

This builds on #28, adding support for double and int parameters to the algorithm functions.

Warning: I am no C programmer! I went looking to see why they weren't working and then thought "that can't be too hard to fix". This may be all wrong.

I would have liked to throw errors when parameters are out of range rather than just setting to defaults (for instance, params.iterations < 1), but the existing code doesn't do that and I haven't figured out how to do it with SQLLite. Maybe something for another PR.

@dylanbstorey
Copy link
Copy Markdown
Contributor

Looks great — really nice refactoring to eliminate the duplicated literal-checking code across all the algorithm call sites! We applied a few minor formatting consistency fixes on our end (tab→space normalization, simplified the int range check for readability, and fixed a duplicate test number). Merging this in, thanks for the contribution!

@dylanbstorey dylanbstorey merged commit 00a40db into colliery-io:main Mar 17, 2026
15 checks passed
@dylanbstorey
Copy link
Copy Markdown
Contributor

dylanbstorey commented Mar 17, 2026

thanks for the contribution ! It just went out with 0.3.8 ! (you were also voted for PR of the release - congrats !)

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