Skip to content

Commit db7a579

Browse files
authored
Fix various issues (#17)
* Fixed issue with expanded menu * Updated the Pygment_anyScript package plus others * Updated the github actions * Fixed issue with foot note reference format Probably a problem introduced when upgrading to the newest MyST parser
1 parent bbf3a81 commit db7a579

6 files changed

Lines changed: 972 additions & 816 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Build Documentation
7777
run: pixi run sphinx-build -M html . _build -W --keep-going -a -t draft
7878

79-
- uses: actions/upload-artifact@v3
79+
- uses: actions/upload-artifact@v4
8080
with:
8181
name: beta-version
8282
path: _build/html
@@ -102,7 +102,7 @@ jobs:
102102
run: pixi run sphinx-build -M html . _build -W --keep-going -a
103103

104104

105-
- uses: actions/upload-artifact@v3
105+
- uses: actions/upload-artifact@v4
106106
with:
107107
name: tagged-version
108108
path: _build/html
@@ -111,15 +111,15 @@ jobs:
111111
needs: [build-latest, build-tagged]
112112
runs-on: ubuntu-latest
113113
steps:
114-
- uses: actions/download-artifact@v3
114+
- uses: actions/download-artifact@v4
115115
with:
116116
name: tagged-version
117117
path: public
118-
- uses: actions/download-artifact@v3
118+
- uses: actions/download-artifact@v4
119119
with:
120120
name: beta-version
121121
path: public/beta
122-
- uses: actions/upload-pages-artifact@v2
122+
- uses: actions/upload-pages-artifact@v3
123123
with:
124124
path: public
125125

Muscle_modeling/lesson1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ involved joints, and where contraction velocities are small.
144144

145145
There are two optional parameters for this model. Vol0 can be used in muscle
146146
recruitment to form a muscle volume weighted sum of muscle activations; see e.g.
147-
[^cite_happee-van-der-hel-1995]. `Lf0` can be tuned in a calibration study; then
147+
[^cite_happee_van_der_hel_1995]. `Lf0` can be tuned in a calibration study; then
148148
using `Vol0`, modified physiological cross sectional area (`PCSA`) of the
149149
muscle can be computed by the user (e.g. as `PCSA=Vol0/Lf0`), which can be
150150
used afterwards to modify the value for `F0`.

Muscle_modeling/lesson5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Muscle model is a description of how a muscle behaves under different
77
operating conditions. There are two schools of thought within this area.
88

99
- The first school pursues phenomenological models based on
10-
the classical work by *A.V. Hill* [^cite_hill-1938]. These models are usually based on
10+
the classical work by *A.V. Hill* [^cite_hill_1938]. These models are usually based on
1111
a description of a muscle as a contractile element in combination
1212
with a number of elastic elements. While these models make no attempt
1313
to directly model the microscopic mechanisms of muscle contraction,
@@ -16,7 +16,7 @@ operating conditions. There are two schools of thought within this area.
1616
efficiency.
1717
- The second school attempts to directly model the microscopic physical
1818
phenomena of cross bridge activity in muscle contraction. The origin
19-
of these models is usually attributed to *A.F. Huxley* [^cite_huxley-1957], and they lead
19+
of these models is usually attributed to *A.F. Huxley* [^cite_huxley_1957], and they lead
2020
to differential equations and consequently to much more
2121
computationally demanding models.
2222

@@ -48,7 +48,7 @@ for their parameters, and they also need fairly costly calibration steps to impr
4848
The following introduces the muscle models available in AnyBody. The simple (**AnyMuscleModel**) and the three-element (**AnyMuscleModel3E**) muscle models are the most commonly used ones in the AMMR, whereas the two-element (**AnyMuscleModel2ELin**) and the custom user-defined (**AnyMuscleModelUsr1**) models provide users with even more freedom to test, learn and benchmark muscle-tendon units.
4949

5050
- `AnyMuscleModel`: This is the simplest conceivable muscle model, and it is the one we have used in the preceding lessons of this tutorial. The only required input to the model is the muscle's presumed isometric strength, F0, i.e. the force that the muscle can exert in a static condition at its optimal length. F0 is often believed to be proportional to the physiological cross sectional area of the muscle, and it is possible to find that dimension for most significant muscles in the human body from cadaver studies reported in the scientific literature. It is important to stress that the strength of this muscle model is independent of the muscle's current length and contraction velocity. It is known for a fact that muscles do not behave that way, but for models with moderate contraction velocities and small joint angle variations even this simple model will work reasonably well. Such has been shown to be the case for bicycling and gait. This model has a lesser need for calibration steps, which makes it beneficial to save effort while just preparing preliminary results for instance in a model ptorotyping phase.
51-
- `AnyMuscleModel3E`: This is a full-blown Hill model that takes parallel passive elasticity of the muscle, serial elasticity of the tendon, pennation angle of the fibers, and many other properties into account. The concepts for this model are adopted from [^cite_zajac-1989]. This model requires several physiological parameters that may be difficult to get or estimate for a particular muscle in a particular individual. Moreover, it applies non-linear force-length and force-velocity relationships, which means that the muscle vary strength depending on the length and contraction velocity. It also means and can loose its strength entirely and this calls for calibration of muscle parameters for each indivudualized model to match the muscle's working range to actual working range of the skeleton.
51+
- `AnyMuscleModel3E`: This is a full-blown Hill model that takes parallel passive elasticity of the muscle, serial elasticity of the tendon, pennation angle of the fibers, and many other properties into account. The concepts for this model are adopted from [^cite_zajac_1989]. This model requires several physiological parameters that may be difficult to get or estimate for a particular muscle in a particular individual. Moreover, it applies non-linear force-length and force-velocity relationships, which means that the muscle vary strength depending on the length and contraction velocity. It also means and can loose its strength entirely and this calls for calibration of muscle parameters for each indivudualized model to match the muscle's working range to actual working range of the skeleton.
5252
- `AnyMuscleModel2ELin`: This model is simpler multi-element model than the three-element model. It presumes that the muscle strength is proportional to its current length and contraction velocity. This means that the muscle gets weaker when its length decreases or the contraction velocity increases. In other words, the muscle strength is bilinear in the length and velocity space. The model also presumes that the tendon is linearly elastic and as such contains two elements: A contractile element (the muscle), and a serial-elastic element (the tendon). The rationale behind this model is that a muscle has a certain passive elasticity built into it. If the muscle it stretched far enough, the passive elasticity will build up force and reduce the necessity for active muscle force. This is in some cases equivalent to an increase of the muscle's strength. Notice, however, that this model has the significant drawback that the force can be switched off even if the muscle is stretched very far, while the true passive elasticity will always provide a force when it is stretched. While this model is simpler than the three-element model, it does not provide a more efficient workflow because calibration is typically also needed for this model. Therefore, this model is used less frequently for real applications, because it will be natural to consider the two previously described models when choosing will be between simplicity and accuracy.
5353
- `AnyMuscleModelUsr1`: This is a custom user-defined muscle model. The user is free to define the strength of the muscle as any explicit expression of muscle variables (e.g. isometric strength (F0), volume(Vol0) or PCSA, fiber length (Lf0)), kinematic measures (e.g. actual fiber length and velocity), and even time. This freedom implies that it is also the user's task to make the most reasonable relationship to muscle and kinematic parameters for instance to include when such paarmeters are affected by model scaling and calibration.
5454

conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ def tagged_commit():
286286
"use_download_button": False,
287287
"use_edit_page_button": True,
288288
"use_issues_button": True,
289-
"show_navbar_depth": 2,
290289
"search_bar_text": "",
291290
"pygment_light_style": "AnyScript",
292291
"pygment_dark_style": "stata-dark",

0 commit comments

Comments
 (0)