Skip to content

Instantly share code, notes, and snippets.

@antiface
Created December 31, 2016 18:58
Show Gist options
  • Save antiface/b045c5f613652136cca406daa9d84a2f to your computer and use it in GitHub Desktop.
Save antiface/b045c5f613652136cca406daa9d84a2f to your computer and use it in GitHub Desktop.
# 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