diff --git a/environment_linux.yml b/environment_linux.yml index 7d51a1e923..d64173d245 100644 --- a/environment_linux.yml +++ b/environment_linux.yml @@ -44,3 +44,4 @@ dependencies: - mpmath - dde - pyyaml + - textgenrnn diff --git a/environment_mac.yml b/environment_mac.yml index 728d5986fb..fca105d06a 100644 --- a/environment_mac.yml +++ b/environment_mac.yml @@ -43,3 +43,4 @@ dependencies: - mpmath - dde - pyyaml + - textgenrnn diff --git a/environment_windows.yml b/environment_windows.yml index 4507861f2f..0e0a8d84bf 100644 --- a/environment_windows.yml +++ b/environment_windows.yml @@ -42,3 +42,4 @@ dependencies: - mpmath - dde - pyyaml + - textgenrnn diff --git a/rmgpy/rmg/main.py b/rmgpy/rmg/main.py index 53eea950c3..a3710d3eb8 100644 --- a/rmgpy/rmg/main.py +++ b/rmgpy/rmg/main.py @@ -1363,6 +1363,21 @@ def finish(self): """ Complete the model generation. """ + # Print neural network-generated quote + import datetime + import textwrap + try: + from textgenrnn.quotes import get_quote + except ImportError: + pass + else: + quote = '"' + get_quote() + '"' + logging.info('') + logging.info(textwrap.fill(quote, subsequent_indent=' ')) + logging.info(' ---Quote-generating neural network, {}'.format( + datetime.datetime.now().strftime("%B %Y") + )) + # Log end timestamp logging.info('') logging.info('RMG execution terminated at ' + time.asctime())