Skip to content

Commit f4ef536

Browse files
committed
further improve formatting
1 parent ecefe23 commit f4ef536

19 files changed

Lines changed: 33114 additions & 33079 deletions

PCPT.ipynb

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
" margin-bottom: 10px;\n",
4646
"\"> \n",
4747
" \n",
48-
"<a href=\"https://opensource.org/licenses/MIT\"><img src=\"data_layout/PCPT_MIT_License_OSIApproved_text.png\" width=\"70\" style=\"float:right; margin-left: 15px;\" alt=\"CC\"></a> \n",
49-
"\n",
5048
"<p style=\"color:#E65100;\">\n",
5149
"<strong>Note:</strong> The code, text, and figures of the PCPT notebooks are licensed under the\n",
5250
"<a href=\"https://opensource.org/licenses/MIT\">MIT License</a>. The latest version of the PCPT notebooks is hosted on <a href=\"https://github.com/meinardmueller/PCPT\">GitHub</a>. Alternatively, you can download a zip-compressed archive containing the PCPT notebooks and all data. Further details can be found in the <a href=\"PCPT_01_getstarted.html\">PCPT notebook on how to get started</a>. We try to continuously improve the PCPT notebooks and provide updates on a regular basis. For suggestions and feedback, please contact <a href=\"https://www.audiolabs-erlangen.de/fau/professor/mueller\">Meinard Müller</a>.\n",
@@ -61,7 +59,7 @@
6159
"source": [
6260
"## Get Started\n",
6361
"\n",
64-
"If a static view of the PCPT notebooks is enough for you, the [exported HTML versions](https://audiolabs-erlangen.de/PCPT) can be used right away without any installation. All material, including the explanations, the figures, and the audio examples, can be accessed by just following the **HTML links**. If you want to **execute** the Python code cells, you have to download the notebooks (along with the data), create an environment, and start a Jupyter server. You then need to follow the **IPYNB links** within the Jupyter session. As an alternative for executing the notebooks, one can also use web-based services such as Google colab or binder via the [notebooks' GitHub repository](https://github.com/groupmm/PCPT). The necessary steps and technical details are explained in the [PCPT notebook Get Started](PCPT_01_getstarted.html)."
62+
"If a static view of the PCPT notebooks is enough for you, the [exported HTML versions](https://audiolabs-erlangen.de/PCPT) can be used right away without any installation. All material, including the explanations, the figures, and the audio examples, can be accessed by just following the **HTML links**. If you want to **execute** the Python code cells, you have to download the notebooks (along with the data), create an environment, and start a Jupyter server. You then need to follow the **IPYNB links** within the Jupyter <span style=\"hyphens: none\">session</span>. As an alternative for executing the notebooks, one can also use web-based services such as Google colab or binder via the [notebooks' GitHub repository](https://github.com/groupmm/PCPT). The necessary steps and technical details are explained in the [PCPT notebook Get Started](PCPT_01_getstarted.html)."
6563
]
6664
},
6765
{
@@ -253,22 +251,6 @@
253251
"</ul> "
254252
]
255253
},
256-
{
257-
"cell_type": "markdown",
258-
"metadata": {},
259-
"source": [
260-
"## Contact\n",
261-
"\n",
262-
"<p>\n",
263-
"<a href=\"https://www.audiolabs-erlangen.de/fau/professor/mueller\">Prof. Dr. Meinard Müller</a> <br>\n",
264-
"Friedrich-Alexander Universität Erlangen-Nürnberg <br>\n",
265-
"International Audio Laboratories Erlangen <br>\n",
266-
"Lehrstuhl Semantic Audio Processing <br>\n",
267-
"Am Wolfsmantel 33, 91058 Erlangen <br>\n",
268-
"Email: meinard.mueller@audiolabs-erlangen.de\n",
269-
"</p>"
270-
]
271-
},
272254
{
273255
"cell_type": "markdown",
274256
"metadata": {},
@@ -296,12 +278,12 @@
296278
"cell_type": "markdown",
297279
"metadata": {},
298280
"source": [
299-
"<div>\n",
281+
"<!-- <div>\n",
300282
"<a href=\"https://www.audiolabs-erlangen.de/\"><img src=\"data_layout/01_Logo_AudioLabs.svg\" width=\"20%\" style=\"margin-right: 6%;\" alt=\"AudioLabs\">\n",
301283
"<a href=\"https://www.fau.eu/\"><img src=\"data_layout/02_Logo_FAU.svg\" width=\"20%\" style=\"margin-right: 6%;\" alt=\"FAU\">\n",
302284
"<a href=\"https://www.iis.fraunhofer.de/en.html\"><img src=\"data_layout/03_Logo_IIS.svg\" width=\"20%\" style=\"margin-right: 6%;\" alt=\"IIS\">\n",
303285
"<a href=\"https://www.dfg.de/en\"><img src=\"data_layout/04_Logo_DFG.svg\" width=\"20%\" alt=\"DFG\">\n",
304-
"</div>"
286+
"</div> -->"
305287
]
306288
},
307289
{

PCPT_01_getstarted.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
" margin-top: 10px;\n",
8484
" margin-bottom: 10px;\n",
8585
"\">\n",
86-
"<tt style=\"color:#E65100;\">git clone https://github.com/meinardmueller/PCPT.git</tt>.<br>\n",
86+
"<tt style=\"color:#E65100;\">git clone https://github.com/groupmm/PCPT.git</tt>.<br>\n",
8787
"</div>"
8888
]
8989
},
@@ -105,9 +105,9 @@
105105
"name": "stdout",
106106
"output_type": "stream",
107107
"text": [
108-
"------------------------------------------------------------------------------\n",
109-
"https://github.com/meinardmueller/PCPT/releases/download/v0.6.2/PCPT_0.6.2.zip\n",
110-
"------------------------------------------------------------------------------\n"
108+
"-----------------------------------------------------------------------\n",
109+
"https://github.com/groupmm/PCPT/releases/download/v0.7.0/PCPT_0.7.0.zip\n",
110+
"-----------------------------------------------------------------------\n"
111111
]
112112
}
113113
],
@@ -381,7 +381,7 @@
381381
"cell_type": "markdown",
382382
"metadata": {},
383383
"source": [
384-
"To run and export all PCPT notebooks at once, we provide a Python script <code>tools/run_and_export_notebooks.py</code> which can be used as follows:\n",
384+
"To conveniently run and export all PCPT notebooks at once, we also provide a Python script <code>tools/run_and_export_notebooks.py</code> which can be used as follows:\n",
385385
"\n",
386386
"<div style=\"\n",
387387
" background-color: #FFE0B2A0;\n",
@@ -441,7 +441,7 @@
441441
"git add *.tex <br>\n",
442442
"git commit -m \"message\" <br>\n",
443443
"git push <br> \n",
444-
"git clone https://github.com/meinardmueller/PCPT.git\n",
444+
"git clone https://github.com/groupmm/PCPT.git\n",
445445
"</tt>\n",
446446
" \n",
447447
"</div> "

PCPT_02_classes.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
"* A **function** is independent and not associated with any particular object. \n",
231231
"* A **method** is a function that is associated with an object and can access and modify that object's internal data.\n",
232232
"\n",
233-
"For example, `Circle.area` is a function defined inside the class&mdash;it needs to be told explicitly which object to operate on. However, when you create an instance like `c = Circle(1)`, the expression `c.area` refers to a method&mdash;it is the same function, but now automatically linked (or **bound**) to the object `c`.\n",
233+
"For example, `Circle.area` is a function defined inside the class&mdash;it needs to be told explicitly which object to operate on. However, when you create an instance like `c = Circle(1)`, the <span style=\"hyphens: none\">expression</span> `c.area` refers to a method&mdash;it is the same function, but now automatically linked (or **bound**) to the object `c`.\n",
234234
"\n",
235235
"In other words, `Circle.area` and `c.area` are not the same: the first is a plain function, while the second is a bound method. Behind the scenes, the instance object `c` is automatically passed as the first argument to the function, making the following two calls equivalent:"
236236
]
@@ -432,7 +432,7 @@
432432
"output_type": "stream",
433433
"text": [
434434
"__dict__ for class:\n",
435-
"{'__module__': '__main__', '__doc__': 'Circle class', 'pi': 3, '__init__': <function Circle.__init__ at 0x7db50ae3b9c0>, 'area': <function Circle.area at 0x7db50ae3bf60>, '__dict__': <attribute '__dict__' of 'Circle' objects>, '__weakref__': <attribute '__weakref__' of 'Circle' objects>}\n",
435+
"{'__module__': '__main__', '__doc__': 'Circle class', 'pi': 3, '__init__': <function Circle.__init__ at 0x704e4c174040>, 'area': <function Circle.area at 0x704e4c174220>, '__dict__': <attribute '__dict__' of 'Circle' objects>, '__weakref__': <attribute '__weakref__' of 'Circle' objects>}\n",
436436
"\n",
437437
"__dict__ for instance:\n",
438438
"{'radius': 3}\n",
@@ -637,7 +637,7 @@
637637
" margin-top: 10px;\n",
638638
" margin-bottom: 10px;\n",
639639
"\">\n",
640-
"<strong style=\"color:#006064;\">Exercise 1: Simple Class</strong><br>\n",
640+
"<strong style=\"color:#006064; display: block; break-after: avoid; page-break-after: avoid;\">Exercise 1: Simple Class</strong>\n",
641641
"\n",
642642
"<p style=\"color:#006064;\">\n",
643643
"Define a class <code>Rectangle</code> with instance attributes <code>width</code> and <code>height</code>. Add the following methods:\n",
@@ -705,7 +705,7 @@
705705
" margin-top: 10px;\n",
706706
" margin-bottom: 10px;\n",
707707
"\">\n",
708-
"<strong style=\"color:#006064;\">Exercise 2: Class vs. Instance Attributes</strong><br>\n",
708+
"<strong style=\"color:#006064; display: block; break-after: avoid; page-break-after: avoid;\">Exercise 2: Class vs. Instance Attributes</strong>\n",
709709
"\n",
710710
"<p style=\"color:#006064;\">\n",
711711
"Create a class <code>Counter</code> with a class attribute <code>count</code> initialized to <code>0</code>, and an instance attribute <code>name</code> that is set when a new instance is created. Each time a new instance is created, increase <code>Counter.count</code> by 1 and print the instance's name along with the current value of <code>Counter.count</code>. Create several instances and observe how the class attribute <code>count</code> is shared by all instances, while the instance attribute <code>name</code> is different for each one.\n",
@@ -764,7 +764,7 @@
764764
" margin-top: 10px;\n",
765765
" margin-bottom: 10px;\n",
766766
"\">\n",
767-
"<strong style=\"color:#006064;\">Exercise 3: Using Inheritance</strong><br>\n",
767+
"<strong style=\"color:#006064; display: block; break-after: avoid; page-break-after: avoid;\">Exercise 3: Using Inheritance</strong>\n",
768768
"\n",
769769
"<p style=\"color:#006064;\">\n",
770770
"Create a class <code>Shape</code> and a subclass <code>Circle</code> to explore inheritance and the use of <code>super()</code>.\n",

0 commit comments

Comments
 (0)