-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
print statement in LM.inspect_history() method causing empty lines on console #1120
Comments
Hi @tumma72 , the print value was added from #622 to ensure the model history was returnable. The empty string you see is from the initialized If you'd like to avoid the outputted value and only see the history via the in-built prints (print_green (completion) and print_red), you can just set |
Hi and thanks for the reply, I am not sure I get it though:
The best way to solve the problem is to put an if statement in front of the print, or remove it all together. You could add a parameter such as |
Hmm. The goal of this method is to print, so removing the print would be very strange. Folks added a return value. I don't like that addition but I'm OK with it. If you just want to access the history manually, just access LMK if that resolves things. |
Ok thanks for the tip, I would at least consider changing the name of the method because from |
There is a print statement in the dsp.modules.lm.LM.inspect_history() method which causes even an empty string to be printed in console. When running long workflows it has the effect of messing up the console output, I am not sure if it was meant to be a debug print, but it is definitely not needed.
I propose to remove it :-)
Thanks for reading...
The text was updated successfully, but these errors were encountered: