diff --git a/hari_plotter/graph.py b/hari_plotter/graph.py index 4bf5b9a..c3193d1 100644 --- a/hari_plotter/graph.py +++ b/hari_plotter/graph.py @@ -758,7 +758,7 @@ def check_all_paths_exist(self) -> bool: return False return True - @ property + @property def mean_opinion(self) -> float: """ Calculates the weighted mean opinion of the nodes in the graph. @@ -809,7 +809,7 @@ def get_graph(self) -> Graph: '''Self call for union formatting with LazyHariGraph''' return self - @ property + @property def opinions(self): """ Returns a dictionary with the opinions of the nodes. @@ -817,7 +817,7 @@ def opinions(self): """ return {node: self.nodes[node]['Opinion'] for node in self.nodes} - @ opinions.setter + @opinions.setter def opinions(self, values: Union[int, float, Dict[Tuple[int]:float]]): if isinstance(values, (int, float)): for node in self.nodes: