ASD-at-GMF / disinfo-laundromat

MIT License
13 stars 5 forks source link

easier way to set variable thresholds #51

Closed abargar closed 6 months ago

abargar commented 6 months ago

Removed a lot of unnecessary code, so now we refer to the matching function directly. Now we can set thresholds (and other matching arguments) just like this example:

Screenshot 2024-03-09 at 22 43 23

To put it simply, wrap the function in partial, then set the arguments afterwards. These must be named arguments - "threshold=0.5" will work, but "0.5" will throw a Python exception because it doesn't know which argument this value applies to.

pbenzoni commented 6 months ago

I love this! This is exactly what I was looking for 👍