diff --git a/src/retromol/model/readout.py b/src/retromol/model/readout.py index 478dacb..bfad69c 100644 --- a/src/retromol/model/readout.py +++ b/src/retromol/model/readout.py @@ -28,7 +28,7 @@ def __str__(self) -> str: :return: str: string representation """ - return f"LinearReadout(assembly_graph_nodes={self.assembly_graph.g.number_of_nodes()}; assembly_graph_edges={self.assembly_graph.g.number_of_edges()}; num_paths={len(self.paths)})" + return f"LinearReadout(assembly_graph_nodes={self.assembly_graph.g.number_of_nodes()}, assembly_graph_edges={self.assembly_graph.g.number_of_edges()}, num_paths={len(self.paths)})" @classmethod def from_reaction_graph( diff --git a/src/retromol/model/result.py b/src/retromol/model/result.py index 65a9051..7cc2945 100644 --- a/src/retromol/model/result.py +++ b/src/retromol/model/result.py @@ -29,7 +29,7 @@ def __str__(self) -> str: :return: string representation of the Result """ - return f"Result(submission={self.submission}, reaction_graph={self.reaction_graph})" + return f"Result(submission={self.submission}, reaction_graph={self.reaction_graph}, linear_readout={self.linear_readout})" def calculate_coverage(self) -> float: """ diff --git a/src/retromol/model/rules.py b/src/retromol/model/rules.py index 38f306d..fb59edd 100644 --- a/src/retromol/model/rules.py +++ b/src/retromol/model/rules.py @@ -441,7 +441,7 @@ def __str__(self) -> str: :return: str: string representation """ - return f"RuleSet({len(self.reaction_rules)} reaction rules; {len(self.matching_rules)} matching rules; match_stereochemistry={self.match_stereochemistry})" + return f"RuleSet({len(self.reaction_rules)} reaction rules, {len(self.matching_rules)} matching rules, match_stereochemistry={self.match_stereochemistry})" @classmethod def load_default(cls, match_stereochemistry: bool = False) -> "RuleSet":