Skip to content

Commit 4d7e890

Browse files
committed
Tweak comment about saving network pdf for debugging.
1 parent e49e127 commit 4d7e890

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rmgpy/rmg/pdep.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,9 @@ def update(self, reaction_model, pdep_settings, requires_rms=False):
882882
K = self.calculate_rate_coefficients(Tlist, Plist, method)
883883
except InvalidMicrocanonicalRateError:
884884
if output_directory:
885-
job.draw(output_directory, filename_stem=f'network{self.index:d}_{len(self.isomers)}', file_format='pdf')
886-
logging.info(f"Network {self.index} has been drawn and saved as a pdf in {output_directory}.")
885+
filename_stem = f'network{self.index:d}_{len(self.isomers):d}'
886+
job.draw(output_directory, filename_stem=filename_stem, file_format='pdf')
887+
logging.info(f"Network {self.index} has been drawn and saved as {filename_stem}.pdf in {output_directory} to aid debugging.")
887888
raise
888889

889890
# Generate PDepReaction objects

0 commit comments

Comments
 (0)