Lab Writeup

5 views
Skip to first unread message

William Hardy

unread,
Feb 5, 2014, 4:23:34 PM2/5/14
to cs...@googlegroups.com
I thought I would share this python script I made to produce the 2 column output Dr. Menzies desires for the labs.
Just run "python write.py lab{num} {files}" where num is the lab number and files are a space separated list of the files you wish to turn in. lab{num}.ps and .pdf will then be created. You will want to change the names inside the file for your group.

Also, I found a minor mistake in Dr. Menzies xtile() function. Line 261 of do.py should be "bar="|",star="*",show= lambda s:" %0.2f" % s)". Currently, it rounds to the nearest ones digit, so the printout only consists of 0's and 1's. (Of course, you could pass in your own lambda body for show).

Best,
Billy Hardy
write.py

Tim Menzies

unread,
Feb 5, 2014, 8:22:28 PM2/5/14
to csx72
thanks: nice code,

keep those ideas coming!

t

p.s. if mr hardy's code fails then you might be missing a2ps on your unix install. if so, try

    sudo apt-get install a2ps





--
You received this message because you are subscribed to the Google Groups "csx72" group.
To unsubscribe from this group and stop receiving emails from it, send an email to csx72+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
:: there are some who call me...   tim.m...@gmail.com
:: prof @ cs.ai.se.csee.wvu.usa.sol.virgo.all.nil
:: +1-304-376-2859          
:: http://menzies.us      (skype = menzies.tim)

<hubris>
  vita=   http:// goo.gl/8eNhY  
  pubs=   http:// goo.gl/8KPKA
  stats=   http:// goo.gl/vggy1 
  wow =   http:// goo.gl/2Wg9A
</hubris>
Reply all
Reply to author
Forward
0 new messages