Skip to content
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

Fix Log dump function in utils.py #5

Open
vixadd opened this issue May 30, 2017 · 5 comments
Open

Fix Log dump function in utils.py #5

vixadd opened this issue May 30, 2017 · 5 comments

Comments

@vixadd
Copy link

vixadd commented May 30, 2017

The utils.py function is a simple fix, but I don't have time to go in and figure out the logistics of how it does everything. Can you fix it?

@Cameron-Calpin
Copy link
Collaborator

Taking a look now

@Cameron-Calpin
Copy link
Collaborator

Is it the format that is being outputted the problem? Also, you're using some linux distro, correct?

@vixadd
Copy link
Author

vixadd commented May 30, 2017

The Linux distro shouldn't be an issue. It's just a simple output to a file.

something like this.

import sys

orig_stdout = sys.stdout
f = open('out.txt', 'w')
sys.stdout = f

for i in range(2):
    print 'i = ', i

sys.stdout = orig_stdout
f.close()

Just make it look organized as well, so that when we run into errors, the verbose mode of everything is outputted directly to there.

I would also prefer it if the utils class was a singleton class. Figure out a way to make it a singleton so we work off the same instance universally.

@vixadd
Copy link
Author

vixadd commented Jun 2, 2017

Singleton classes should be simple. Make this a separate issue.

@vixadd
Copy link
Author

vixadd commented Jun 2, 2017

Figure out if there's someway to do it in python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants