Skip to content

Commit

Permalink
Merge pull request #10 from MetExplore/development
Browse files Browse the repository at this point in the history
Prepare for 0.9.0-alpha.4
  • Loading branch information
pablormier authored Aug 13, 2021
2 parents aa185ce + 4362f58 commit d0b319a
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install mkdocs-material mkdocstrings
python -m pip install mkdocs-material mkdocstrings mkdocs-minify-plugin
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set up Python 3.7
Expand Down
22 changes: 13 additions & 9 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,27 @@
{% endblock %}

{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.716f8af4.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}
{{ super() }}
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
"background": "#4b81e8"
}
}
}
});
</script>
{% endblock %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">

<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
5 changes: 4 additions & 1 deletion examples/introduction_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@
# Get continuos vars (fluxes) and binary vars
.get_values())

print("Number of reactions with non-zero flux:", sum(abs(V) > 1e-8))
print("Number of reactions with an absolute flux value above 1e-8:", sum(abs(V) > 1e-8))
print("Active reactions:", sum(1 if activity == 1 else 0 for activity in model.variables.indicator_rxn_activity))
print("Inconsistencies:", sum(1 if activity != activity else 0 for activity in model.variables.indicator_rxn_activity))
print("Solver status:", model.get_solver_status())
Loading

0 comments on commit d0b319a

Please sign in to comment.