Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "basic_data_handling"
version = "0.4.4"
version = "0.4.5"
description = """Basic Python functions for manipulating data that every programmer is used to, lightweight with no additional dependencies.

Supported data types:
Expand Down
10 changes: 6 additions & 4 deletions src/basic_data_handling/math_formula_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ class MathFormula(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"required": ContainsDynamicDict({
"formula": (IO.STRING, {"default": "-e() ** -2"}),
"a": (IO.NUMBER, {"default": 3.0, "_dynamic": "letter"}),
"required": {
"formula": (IO.STRING, {"default": "-pi() ** 2"}),
},
"optional": ContainsDynamicDict({
"a": (IO.NUMBER, {"default": 0.0, "_dynamic": "letter"}),
}),
}

RETURN_TYPES = (IO.FLOAT,)
CATEGORY = "math"
CATEGORY = "Basic/maths"
DESCRIPTION = cleandoc(__doc__ or "")
FUNCTION = "evaluate"

Expand Down