Skip to content

Commit a198a2b

Browse files
committed
typos
1 parent be540e4 commit a198a2b

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

docs/p/notebooks/response_matrices.ipynb

+24-24
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 19,
19+
"execution_count": 55,
2020
"id": "ce595103-f8d4-4425-9c16-c4f766cd11c6",
2121
"metadata": {
2222
"editable": true,
@@ -38,7 +38,7 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 20,
41+
"execution_count": 56,
4242
"id": "f21dfcdb-1fc4-4ab2-a34f-48d1eb467c23",
4343
"metadata": {
4444
"editable": true,
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
"cell_type": "code",
58-
"execution_count": 21,
58+
"execution_count": 57,
5959
"id": "f4b3676d-a5d3-4f16-9fd4-20788606b6b6",
6060
"metadata": {
6161
"editable": true,
@@ -73,7 +73,7 @@
7373
},
7474
{
7575
"cell_type": "code",
76-
"execution_count": 22,
76+
"execution_count": 58,
7777
"id": "620def05-b2fe-4cce-8566-9bd10d2018af",
7878
"metadata": {
7979
"editable": true,
@@ -131,7 +131,7 @@
131131
},
132132
{
133133
"cell_type": "code",
134-
"execution_count": 23,
134+
"execution_count": 59,
135135
"id": "68a54c6d-be1d-41a9-90f8-f496b22d076c",
136136
"metadata": {
137137
"editable": true,
@@ -164,7 +164,7 @@
164164
},
165165
{
166166
"cell_type": "code",
167-
"execution_count": 24,
167+
"execution_count": 60,
168168
"id": "8490caa3-14c1-4c7f-ba1e-f4e64078b6a5",
169169
"metadata": {
170170
"editable": true,
@@ -196,7 +196,7 @@
196196
},
197197
{
198198
"cell_type": "code",
199-
"execution_count": 25,
199+
"execution_count": 61,
200200
"id": "2d64d87b-ba18-4c22-921f-f6765f74080d",
201201
"metadata": {
202202
"editable": true,
@@ -233,12 +233,12 @@
233233
" saved values or experimentally measured values,\n",
234234
"3. {py:meth}`~.ResponseMatrix.build_tracking` computes the matrix using tracking,\n",
235235
"4. For some specialized response matrices\n",
236-
" {py:meth}`~OrbitResponseMatrix.build_analytical} is available.\n"
236+
" {py:meth}`~OrbitResponseMatrix.build_analytical` is available.\n"
237237
]
238238
},
239239
{
240240
"cell_type": "code",
241-
"execution_count": 26,
241+
"execution_count": 62,
242242
"id": "23154d5d-bdf8-43ed-8b4a-cfc616d7e659",
243243
"metadata": {
244244
"editable": true,
@@ -266,7 +266,7 @@
266266
" -7.6711941 , 16.94982252]], shape=(80, 128))"
267267
]
268268
},
269-
"execution_count": 26,
269+
"execution_count": 62,
270270
"metadata": {},
271271
"output_type": "execute_result"
272272
}
@@ -320,7 +320,7 @@
320320
},
321321
{
322322
"cell_type": "code",
323-
"execution_count": 27,
323+
"execution_count": 63,
324324
"id": "f74e856f-0c6f-4a89-9493-255c1cc3f03f",
325325
"metadata": {
326326
"editable": true,
@@ -373,7 +373,7 @@
373373
},
374374
{
375375
"cell_type": "code",
376-
"execution_count": 28,
376+
"execution_count": 64,
377377
"id": "64e02b6c-2b89-4f5a-b7e1-b9e4e8af0a8b",
378378
"metadata": {
379379
"editable": true,
@@ -403,7 +403,7 @@
403403
},
404404
{
405405
"cell_type": "code",
406-
"execution_count": 29,
406+
"execution_count": 65,
407407
"id": "bee36f70-ccab-4f5e-a746-c4d86cdbb3fc",
408408
"metadata": {
409409
"editable": true,
@@ -466,7 +466,7 @@
466466
},
467467
{
468468
"cell_type": "code",
469-
"execution_count": 30,
469+
"execution_count": 66,
470470
"id": "317e2a0f-0e81-479e-89fb-71c49fe03d70",
471471
"metadata": {
472472
"editable": true,
@@ -494,15 +494,15 @@
494494
"#### Exclusion of observables\n",
495495
"\n",
496496
"Observables are selected by their name or position in the observable list. In addition, for\n",
497-
"{py:class}`ElementObservable` observables, we need to specify a _refpts_ to identify which item\n",
497+
"{py:class}`.ElementObservable` observables, we need to specify a _refpts_ to identify which item\n",
498498
"in the array will be excluded.\n",
499499
"\n",
500500
"Let's exclude all Monitors with name _BPM\\_07_:"
501501
]
502502
},
503503
{
504504
"cell_type": "code",
505-
"execution_count": 31,
505+
"execution_count": 67,
506506
"id": "4223c1bf-0108-4068-b938-4d9313c48684",
507507
"metadata": {
508508
"editable": true,
@@ -532,7 +532,7 @@
532532
},
533533
{
534534
"cell_type": "code",
535-
"execution_count": 32,
535+
"execution_count": 68,
536536
"id": "208f3e79-7ab5-4647-95bd-bb4d8787bea0",
537537
"metadata": {
538538
"editable": true,
@@ -577,7 +577,7 @@
577577
},
578578
{
579579
"cell_type": "code",
580-
"execution_count": 33,
580+
"execution_count": 69,
581581
"id": "1cb0b249-8cca-4409-9277-217ba1442a78",
582582
"metadata": {
583583
"editable": true,
@@ -613,7 +613,7 @@
613613
"tags": []
614614
},
615615
"source": [
616-
"The exclusion masks can de reset using {py:meth}`~.ResponseMatrix.reset_vars` and\n",
616+
"The exclusion masks can be reset using {py:meth}`~.ResponseMatrix.reset_vars` and\n",
617617
"{py:meth}`~.ResponseMatrix.reset_obs`.\n",
618618
"\n",
619619
"## Orbit response matrix\n",
@@ -640,7 +640,7 @@
640640
},
641641
{
642642
"cell_type": "code",
643-
"execution_count": 34,
643+
"execution_count": 70,
644644
"id": "8e703ee8-0aba-452c-808d-0621ef4e5f1e",
645645
"metadata": {
646646
"editable": true,
@@ -679,14 +679,14 @@
679679
"{py:class}`.OrbitResponseMatrix` has a {py:meth}`~.OrbitResponseMatrix.build_analytical` build method,\n",
680680
"using formulas from [^Franchi].\n",
681681
"\n",
682-
"[^Franchi]: A. Franchi, S.M. Liuzzo, Z, Marti, _\"Analytic formulas for the rapid evaluation of the orbit\n",
682+
"[^Franchi]: A. Franchi, S.M. Liuzzo, Z. Marti, _\"Analytic formulas for the rapid evaluation of the orbit\n",
683683
"response matrix and chromatic functions from lattice parameters in circular accelerators\"_,\n",
684684
"arXiv:1711.06589 [physics.acc-ph]"
685685
]
686686
},
687687
{
688688
"cell_type": "code",
689-
"execution_count": 35,
689+
"execution_count": 71,
690690
"id": "65a21d36-6d0d-46f0-ba72-5092fec3ab17",
691691
"metadata": {
692692
"editable": true,
@@ -715,7 +715,7 @@
715715
" shape=(81, 49))"
716716
]
717717
},
718-
"execution_count": 35,
718+
"execution_count": 71,
719719
"metadata": {},
720720
"output_type": "execute_result"
721721
}
@@ -783,7 +783,7 @@
783783
},
784784
{
785785
"cell_type": "code",
786-
"execution_count": 36,
786+
"execution_count": 72,
787787
"id": "8c7de11a-d8e5-4fd9-9784-25a9244a0305",
788788
"metadata": {
789789
"editable": true,

pyat/at/latticetools/response_matrix.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
111111
Variables may be added to a set of excluded values, and similarly for observables.
112112
Excluding an item does not change the response matrix. The values are excluded from the
113-
pseudo-inversion of the response, possibly reducing thenumber of singular values.
113+
pseudo-inversion of the response, possibly reducing the number of singular values.
114114
After inversion the correction matrix is expanded to its original size by inserting
115115
zero lines and columns at the location of excluded items. This way:
116116
@@ -231,14 +231,14 @@ def __init__(self, nobs, nvar):
231231
self.singular_values = None
232232

233233
def reset_vars(self):
234-
"""Reset the variable exclusion mask: enable variables"""
234+
"""Reset the variable exclusion mask: enable all variables"""
235235
self._varmask = np.ones(self.shape[1], dtype=bool)
236236
self.v = None
237237
self.uh = None
238238
self.singular_values = None
239239

240240
def reset_obs(self):
241-
"""Reset the observable exclusion mask: enable observables"""
241+
"""Reset the observable exclusion mask: enable all observables"""
242242
self._obsmask = np.ones(self.shape[0], dtype=bool)
243243
self.v = None
244244
self.uh = None

0 commit comments

Comments
 (0)