Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
BF: Fix closed stdout after ExperimentHandler save #902
If ExperimentHandler's saveAsWideText() function was called with the file name "stdout" (to write to sys.stdout instead of a real file), the standard output was closed afterwards. This was fixed by only closing the used file object if it is not the standard output object.
Also replaced a print statement with call to logging function for consistency.