8000 Fix README file (#247) · SerAcero/python-tutorial@1ce10a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ce10a4

Browse files
authored
Fix README file (empa-scientific-it#247)
* Patch README file Remove incorrect line about updating conda environment * Fix broken link Mambda installation page was not found. They changed the docs. * Fix Flake error C420: unnecessary dict comprehension
1 parent b2eca0f commit 1ce10a4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You have two ways in which you can run the tutorial **locally**.
1010

1111
#### 0. Prerequisites
1212

13-
To run the tutorial locally, you should first install [conda](https://docs.conda.io/en/latest/miniconda.html) (or [mamba](https://mamba.readthedocs.io/en/latest/installation.html)).
13+
To run the tutorial locally, you should first install [conda](https://docs.conda.io/en/latest/miniconda.html) (or [mamba](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html)).
1414

1515
It is also suggested that you have a recent version of `git`. Check out [how to install `git`](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) on your operating system.
1616

@@ -67,12 +67,6 @@ Finally, launch JupyterLab with
6767
jupyter lab
6868
```
6969

70-
To update the existing environment, run
71-
72-
```console
73-
conda env update -f environment.yml
74-
```
75-
7670
### 2. With Docker
7771

7872
> **Note**

tutorial/tests/test_control_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_find_triplet(nums: List[int], function_to_test) -> None:
194194

195195
def reference_cats_with_hats() -> int:
196196
"""Solution with dictionaries"""
197-
cats = {i: False for i in range(1, 101)}
197+
cats = dict.fromkeys(range(1, 101), False)
198198

199199
for loop in range(1, 101):
200200
for cat, has_hat in cats.items():

0 commit comments

Comments
 (0)
0