Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d81ea8a

Browse filesBrowse files
committed
fix typos following today session
1 parent 211bca6 commit d81ea8a
Copy full SHA for d81ea8a

File tree

Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎10_python_data_intro.ipynb‎

Copy file name to clipboardExpand all lines: 10_python_data_intro.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
"- 09:30-09:45: [0:15] **Introduction**\n",
7575
"- 09:45-11:30: [1:45] **Session 1.1** - Starting with data and python\n",
7676
"- 11:30-11:45: [0:15] *break*\n",
77-
"- 11:45-12:30: [0:45] **Session 1.2** - Using existing python modules to explore data in files\n",
77+
"- 11:45-12:30: [0:45] **Session 1.2** - Using existing python modules to explore data in files (part 1)\n",
7878
"- 12:30-13:30: [1:00] *lunch break*\n",
79-
"- 13:30-14:30: [1:00] **Session 1.2**\n",
79+
"- 13:30-14:30: [1:00] **Session 1.2** - Using existing python modules to explore data in files (part 2)\n",
8080
"- 14:30-14:45: [0:15] *break*\n",
8181
"- 14:45-16:30: [1:45] **Session 1.3** - Creating functions and modules to write reusable code"
8282
]
Collapse file

‎12_python_data.ipynb‎

Copy file name to clipboardExpand all lines: 12_python_data.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
"source": [
345345
"## Exercise 1.2.2\n",
346346
"\n",
347-
"- List all `.txt` files from the `data` directory, print their file path only it is a file.\n",
347+
"- List all `.txt` files from the `data` directory, print their file path only if it is a file.\n",
348348
"- Check that the file `genes.txt` exists in `data/`, open the tab separated file, and calculate the length of each genes."
349349
]
350350
},
Collapse file

‎solutions/ex_12_2.ipynb‎

Copy file name to clipboardExpand all lines: solutions/ex_12_2.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Solution to exercise 1.2.2\n",
88
"\n",
9-
"- List all `.txt` files from the `data` directory, print their file path only it is a file.\n",
9+
"- List all `.txt` files from the `data` directory, print their file path only if it is a file.\n",
1010
"- Check that the file `genes.txt` exists in `data/`, open the tab separated file, and calculate the length of each genes."
1111
]
1212
},
@@ -20,7 +20,7 @@
2020
"dirname = '../data'\n",
2121
"for filename in os.listdir(dirname):\n",
2222
" filepath = os.path.join(dirname, filename)\n",
23-
" if os.path.isfile(filepath):\n",
23+
" if os.path.isfile(filepath) and filename.endswith('.txt'):\n",
2424
" print(filepath)"
2525
]
2626
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.