Created
December 31, 2016 18:58
-
-
Save antiface/b045c5f613652136cca406daa9d84a2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DATETIME: (date at top) | |
# EXPERIMENT: (number and title clearly stated) | |
# (Clear statement of purpose) | |
# PROCEDURE: (succinct description of procedure | |
# SIGNATURE: | |
import os | |
import time | |
os.chdir('C:\\Refcards\Documentation') # Example Repository location for Labnotes. | |
def writeNote(x): | |
with open(x, 'w') as outfile: | |
outfile.write('Time: '+time.asctime()) | |
outfile.write('\n') | |
outfile.write('\n') | |
outfile.write('Experiment: '+raw_input('Experiment: ')) | |
outfile.write('\n') | |
outfile.write('\n') | |
outfile.write('Statement of Purpose: '+raw_input('Statement of Purpose: ')) | |
outfile.write('\n') | |
outfile.write('\n') | |
outfile.write('Procedure: '+raw_input('Procedure: ')) | |
outfile.write('\n') | |
outfile.write('\n') | |
outfile.write('Notes: '+raw_input('Notes: ')) | |
def note(): | |
t = time.strftime('%Y%m%d%H%M') | |
writeNote(t+'.txt') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment