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

Write boilerplate that will be printed out everytime #4

Open
mandel01 opened this issue Feb 1, 2017 · 3 comments
Open

Write boilerplate that will be printed out everytime #4

mandel01 opened this issue Feb 1, 2017 · 3 comments

Comments

@mandel01
Copy link
Contributor

mandel01 commented Feb 1, 2017

This can go in a new function in utils.py -- we'll use this script to hold utility functions we want to call from other functions.

Examples...

def format_for_user(output):
    "print the program output in a report for the user"
    pass

Can also use this file for things like table formatting, etc....

def format_table(lol):
    "output list of lists to tabular text format"
    pass
@mandel01
Copy link
Contributor Author

mandel01 commented Feb 1, 2017

I'll start working on this but others can hop in too.

@dtarnowski16
Copy link
Contributor

To make sure I understand, this script is just a place to store utility functions we are working on. We'd then need to copy in the ones we want into the actual program scripts and edit them to have the variables we want. This script would be a place to edit/explore things like formatting?

@mandel01
Copy link
Contributor Author

mandel01 commented Feb 2, 2017

No, I think that this will hold functions that multiple programs will use.

There may not be as many of those as I had thought. Each program may need to format its own output unless we can come up with a clever way to do it.

Some things may be generally useful and we could write one function that could get reused (e.g., formatting a list of lists into a text only table for printing).

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

No branches or pull requests

2 participants