Skip to content

Commit abe5e27

Browse files
committed
black formatting
1 parent 179c14e commit abe5e27

8 files changed

+1
-17
lines changed

.github/workflows/codespell.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Codespell
32

43
on:

completed_tutorials/03-Calcium Imaging Computed Tables.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,6 @@
14161416
" def make(\n",
14171417
" self, key\n",
14181418
" ): # key is one of the primary keys of the join product of AverageFrame and ParameterSet\n",
1419-
"\n",
14201419
" print(\"Populating for: \", key)\n",
14211420
"\n",
14221421
" # fetch average image from the previous table AverageFrame\n",
@@ -2738,7 +2737,6 @@
27382737
"\n",
27392738
" # the master table is mainly to perform the computation, while the part table contains the result\n",
27402739
" def make(self, key):\n",
2741-
"\n",
27422740
" print(\"Populating: {}\".format(key))\n",
27432741
" # fetch data directory from table Session\n",
27442742
" data_path = \"../01-Calcium_Imaging/\" + (Session & key).fetch1(\"data_path\")\n",
@@ -2764,7 +2762,6 @@
27642762
"\n",
27652763
" traces = []\n",
27662764
" for roi_key, mask in zip(roi_keys, masks):\n",
2767-
"\n",
27682765
" # reshape mask\n",
27692766
" mask_reshaped = np.reshape(mask, [w * h])\n",
27702767
" trace = np.mean(im_reshaped[:, mask_reshaped], axis=1)\n",

completed_tutorials/05-Electrophysiology Computed Tables.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,6 @@
22232223
" 40,\n",
22242224
" ) # extract 40 sample points before and after a spike as the waveform\n",
22252225
" for spk_id, spk in enumerate(np.where(spikes == 1)[0]):\n",
2226-
"\n",
22272226
" # For simplicity, skip the spikes too close to the beginning or the end\n",
22282227
" if spk - before_spk < 0 or spk + after_spk > len(activity) + 1:\n",
22292228
" continue\n",

db-course/006-Joins-HW.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@
18951895
}
18961896
],
18971897
"source": [
1898-
"dj.Diagram (nations)"
1898+
"dj.Diagram(nations)"
18991899
]
19001900
},
19011901
{

db-course/008-Transactions.ipynb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@
249249
"outputs": [],
250250
"source": [
251251
"def transfer_bad(account1, account2, amount):\n",
252-
"\n",
253252
" current_balance = (Account & account1).fetch1(\"balance\")\n",
254253
" if current_balance < amount:\n",
255254
" raise RuntimeError(\"Insufficient funds\")\n",
@@ -268,10 +267,8 @@
268267
"outputs": [],
269268
"source": [
270269
"def transfer_good(account1, account2, amount):\n",
271-
"\n",
272270
" conn = dj.conn()\n",
273271
" with conn.transaction:\n",
274-
"\n",
275272
" current_balance = (Account & account1).fetch1(\"balance\")\n",
276273
" if current_balance < amount:\n",
277274
" raise RuntimeError(\"Insufficient funds\")\n",
@@ -634,7 +631,6 @@
634631
"outputs": [],
635632
"source": [
636633
"def transfer(cursor, account1, account2, amount):\n",
637-
"\n",
638634
" cursor.execute(\"BEGIN TRANSACTION\")\n",
639635
"\n",
640636
" try:\n",

db-course/DesignPatterns.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,7 @@
287287
"outputs": [],
288288
"source": [
289289
"def transfer(account1, account2, amount):\n",
290-
"\n",
291290
" with Account.connection.transaction:\n",
292-
"\n",
293291
" current_balance = (Account & account1).fetch1(\"balance\")\n",
294292
" if current_balance < amount:\n",
295293
" raise RuntimeError(\"Insufficient funds\")\n",
@@ -1359,7 +1357,6 @@
13591357
"outputs": [],
13601358
"source": [
13611359
"def transfer(cursor, account1, account2, amount):\n",
1362-
"\n",
13631360
" cursor.execute(\"BEGIN TRANSACTION\")\n",
13641361
"\n",
13651362
" try:\n",

tutorials/03-Calcium Imaging Computed Tables.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@
537537
" def make(\n",
538538
" self, key\n",
539539
" ): # key is one of the primary keys of the join product of AverageFrame and ParameterSet\n",
540-
"\n",
541540
" print(\"Populating for: \", key)\n",
542541
"\n",
543542
" # fetch average image from the previous table AverageFrame\n",
@@ -912,7 +911,6 @@
912911
"\n",
913912
" # the master table is mainly to perform the computation, while the part table contains the result\n",
914913
" def make(self, key):\n",
915-
"\n",
916914
" print(\"Populating: {}\".format(key))\n",
917915
" # fetch data directory from table Session\n",
918916
" data_path = (Session & key).fetch1(\"data_path\")\n",
@@ -938,7 +936,6 @@
938936
"\n",
939937
" traces = []\n",
940938
" for roi_key, mask in zip(roi_keys, masks):\n",
941-
"\n",
942939
" # reshape mask\n",
943940
" mask_reshaped = np.reshape(mask, [w * h])\n",
944941
" trace = np.mean(im_reshaped[:, mask_reshaped], axis=1)\n",

tutorials/05-Electrophysiology Computed Tables.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,6 @@
777777
" 40,\n",
778778
" ) # extract 40 sample points before and after a spike as the waveform\n",
779779
" for spk_id, spk in enumerate(np.where(spikes == 1)[0]):\n",
780-
"\n",
781780
" # For simplicity, skip the spikes too close to the beginning or the end\n",
782781
" if spk - before_spk < 0 or spk + after_spk > len(activity) + 1:\n",
783782
" continue\n",

0 commit comments

Comments
 (0)