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

Move notebook functions into .py file and add tests (which will fail) #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions 0045+1634_61testing_mc.txt

This file was deleted.

73 changes: 0 additions & 73 deletions 0241-0326_61testing_mc.txt

This file was deleted.

29 changes: 20 additions & 9 deletions shifty.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Making a change (3/22)"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -243,7 +254,6 @@
},
"outputs": [],
"source": [
"\n",
"import numpy as np\n",
"import matplotlib.mlab as mlab\n",
"\n",
Expand All @@ -265,7 +275,7 @@
" fig = plt.plot(x_gauss,y_gauss)\n",
" \n",
" print('mean = ', mean, 'sigma = ', sigma)\n",
" return fig\n"
" return fig"
]
},
{
Expand Down Expand Up @@ -385,7 +395,7 @@
" df['RMS'] = RMSs\n",
" df['sigma'] = sigmas\n",
"\n",
" df.to_csv(str(data_tar[0][1])+'_RMS_bad_removed.txt',sep='\\t')\n"
" df.to_csv(str(data_tar[0][1])+'_RMS_bad_removed.txt',sep='\\t')"
]
},
{
Expand Down Expand Up @@ -850,8 +860,7 @@
" plt.plot(w_tar_plot,f_tar_plot,color='black')\n",
" plt.plot(w_tar_plot,f_comp_plot,color='red')\n",
" \n",
" plt.show()\n",
" "
" plt.show()"
]
},
{
Expand Down Expand Up @@ -893,7 +902,9 @@
"collapsed": true
},
"outputs": [],
"source": []
"source": [
""
]
}
],
"metadata": {
Expand All @@ -905,7 +916,7 @@
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 3.0
},
"file_extension": ".py",
"mimetype": "text/x-python",
Expand All @@ -916,5 +927,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
}
"nbformat_minor": 0
}
Loading