Skip to content

Commit

Permalink
Merge pull request #339 from jenshnielsen/log_call_to_node
Browse files Browse the repository at this point in the history
Log call to node.process
  • Loading branch information
jenshnielsen committed Oct 21, 2022
2 parents 31285a9 + 0b2a727 commit ee5d80b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
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

0 comments on commit ee5d80b

Please sign in to comment.