Skip to content

Commit 2a27cd7

Browse files
committed
Some vscode stuff that makes sense for others to reuse
1 parent 0dbf71a commit 2a27cd7

4 files changed

+79
-0
lines changed

.vscode/ltex.dictionary.en-GB.txt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
PyPI
2+
undoc-members
3+
DESY
4+
Bmad
5+
Twiss
6+
maxdepth
7+
CUDA
8+
Chenran
9+
Eichler
10+
Santamaria
11+
@cr-xu
12+
LatticeJSON
13+
docstring
14+
@FelixTheilen
15+
pytest
16+
isort
17+
docstrings

.vscode/ltex.disabledRules.en-GB.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
OXFORD_SPELLING_Z_NOT_S
2+
OXFORD_SPELLING_Z_NOT_S
3+
OXFORD_SPELLING_Z_NOT_S
4+
OXFORD_SPELLING_Z_NOT_S
5+
OXFORD_SPELLING_Z_NOT_S
6+
OXFORD_SPELLING_Z_NOT_S
7+
OXFORD_SPELLING_Z_NOT_S
8+
OXFORD_SPELLING_Z_NOT_S
9+
OXFORD_SPELLING_Z_NOT_S
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qwhere the optional keyword argument \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q is the incoming beam represented by the reference particles.\\E$"}
2+
{"rule":"OXFORD_SPELLING_Z_NOT_S","sentence":"^\\QGradient-based optimisation using Cheetah and PyTorch\\E$"}
3+
{"rule":"OXFORD_SPELLING_Z_NOT_S","sentence":"^\\QCheetah is a differentiable beam dynamics simulation engine, making it ideally suited to gradient-based optimisation, for example for optimisation magnet settings, lattice geometries or even for system identification.\\E$"}
4+
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\Q, pass the file path to \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q.\\E$"}
5+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QUtils\\E$"}
6+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qutils\n:members:\n:undoc-members:\\E$"}
7+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qconverters.nocelot\n:members:\n:undoc-members:\\E$"}
8+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QNOcelot\\E$"}
9+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QLatticeJSON\\E$"}
10+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qlatticejson\n:members:\n:undoc-members:\\E$"}
11+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QDontBmad\\E$"}
12+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qconverters.dontbmad\n:members:\n:undoc-members:\\E$"}
13+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QAstralavista\\E$"}
14+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qconverters.astralavista\n:members:\n:undoc-members:\\E$"}
15+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qbash\\E$"}
16+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Q:maxdepth: 2\n:caption: Examples\\E$"}
17+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qexamples/simple\nexamples/convert\nexamples/gradientbased\\E$"}
18+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qaccelerator\nastralavista\ndontbmad\nerror\nlatticejson\nnocelot\nparticles\ntrack_methods\nutils\\E$"}
19+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qbibtex\\E$"}
20+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Qbibtex\\E$"}
21+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Q@inproceedings{stein2022accelerating,\nauthor = {Stein, Oliver and\nKaiser, Jan and\nEichler, Annika},\ntitle = {Accelerating Linear Beam Dynamics Simulations for Machine Learning Applications},\nbooktitle = {Proceedings of the 13th International Particle Accelerator Conference},\nyear = {2022},\nurl = {https://github.com/desy-ml/cheetah},\n}\\E$"}
22+
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\Q@inproceedings{stein2022accelerating,\nauthor = {Stein, Oliver and\nKaiser, Jan and\nEichler, Annika},\ntitle = {Accelerating Linear Beam Dynamics Simulations for Machine Learning Applications},\nbooktitle = {Proceedings of the 13th International Particle Accelerator Conference},\nyear = {2022},\nurl = {https://github.com/desy-ml/cheetah},\n}\\E$"}
23+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qpip install -e .\\E$"}
24+
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\Qpip install -e .\\E$"}
25+
{"rule":"ENGLISH_WORD_REPEAT_RULE","sentence":"^\\Qpip install pre-commit\npre-commit install\\E$"}
26+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QConvert from Bmad lattices files (see #65) (@jank324)\nAdd proper transfer map for cavity (see #65) (@jank324, @cr-xu)\nTwiss parameter calculation and generate new beam from twiss parameter (see #62) (@jank324, @cr-xu)\nSaving and loading lattices from LatticeJSON (see #9) (@cr-xu)\nNested \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Qs can now be flattened (@jank324)\nOcelot converter adds support for \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q, \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q and \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q (see #78) (@jank324)\\E$"}
27+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QFix issue where multivariate_normal() crashes because cov is not positive-semidefinite.\\E$"}
28+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QFaster screen reading simulation by using torch.histogramdd()\\E$"}
29+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qv0.5.15 (2022-10-12)\\E$"}
30+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QAdd caching of Screen.reading to avoid expensive recomputation\\E$"}
31+
{"rule":"LC_AFTER_PERIOD","sentence":"^\\QAdd caching of Screen.reading to avoid expensive recomputation\\E$"}
32+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qv0.5.13 (2022-07-26)\\E$"}
33+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qv0.5.14 (2022-09-28)\\E$"}
34+
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\Qv0.5.17 (2023-02-05)\\E$"}
35+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QImprove docstrings (@FelixTheilen)\nImplement better testing with pytest (@FelixTheilen)\nSetup formatting with \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q and \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q as well as \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q listing (@cr-xu)\nAdd type annotations (@jank324)\nSetup Sphinx documentation on readthedocs (@jank324)\\E$"}
36+
{"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QFix dependencies on readthedocs (see #54) (@jank324)\nFix error when tracking \\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q through segment on CPU (see #68) (@cr-xu)\\E$"}

.vscode/settings.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"spellright.language": [
3+
"en_GB"
4+
],
5+
"spellright.documentTypes": [
6+
"markdown",
7+
"latex",
8+
"plaintext"
9+
],
10+
"python.linting.flake8Enabled": true,
11+
"python.linting.enabled": true,
12+
"[python]": {
13+
"editor.defaultFormatter": "ms-python.black-formatter"
14+
},
15+
"python.formatting.provider": "none",
16+
"esbonio.sphinx.confDir": ""
17+
}

0 commit comments

Comments
 (0)