Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log call to node.process #339

Merged
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
3 changes: 3 additions & 0 deletions plottr/node/filter/correct_offset.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def getAvgAxis(self) -> str:


class SubtractAverage(Node):

nodeName = "SubtractAverage"

useUi = True
uiClass = SubtractAverageWidget

Expand Down
1 change: 1 addition & 0 deletions plottr/node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def validateOptions(self, data: DataDictBase) -> bool:
# TODO: should think about nodes with multiple inputs -- how would this look then?
# FIXME: return should only be Optional[Dict[str, DataDictBase]]
def process(self, dataIn: Optional[DataDictBase]=None) -> Optional[Dict[str, Optional[DataDictBase]]]:
self.node_logger.debug(f"Processing data with node: {self.nodeName}")
if dataIn is None:
return None

Expand Down
1 change: 1 addition & 0 deletions plottr/node/scaleunits.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class ScaleUnits(Node):
e.g (1*10**3 complexunit)
"""
useUi = True
nodeName = "ScaleUnits"
uiClass = ScaleUnitsWidget

def __init__(self, name: str):
Expand Down