-
Notifications
You must be signed in to change notification settings - Fork 3
Global Sensitivity analysis and conversion of all notebooks to jupytext #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rwest
wants to merge
31
commits into
main
Choose a base branch
from
sensitivity
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First:
conda install jupytext
Then run this:
grep -rl '"language": "julia"' . --include="*.ipynb" \
| while read -r nb; do
echo "Pairing $nb"
jupytext --set-formats ipynb,jl "$nb"
done
grep -rl '"language": "julia"' . --include="*.ipynb" \
| while read -r nb; do
# Normalize to repo-relative path without leading "./"
nb_clean=$(realpath --relative-to="$(git rev-parse --show-toplevel)" "$nb")
# Append to .gitignore if not already present
if ! grep -qx "$nb_clean" .gitignore 2>/dev/null; then
echo "$nb_clean" >> .gitignore
echo "Added $nb_clean to .gitignore"
fi
# Remove from git index without deleting it locally
git rm --cached "$nb"
echo "Untracked $nb_clean from git"
done
When adding Volmer and Heyrovsky, it was not able to solve until I changed the boundary layer thickness from 1mm to 1 um. also changed some plots
Adjusted the Morris GSA and it converged
The GlobalSensitivity has results but require more probe to conclude the findings
added the exact code used in the Morris GlobalSensitivity.jl doc
You still need to manually sync sometimes. Try: jupytext --sync */*.jl
Nothing major yet.
Open
But think I broke something
Trying to make a Project.toml
this tells Julia Pkg thing what to install
This explicitly shows that ReactionMechanismSimulator is being loaded from your local path. This makes it crystal clear when you (or collaborators) look at the file that it's a development version, not the official package. Presumes it's alongside the current project
Presumably this is better (or at least more stable)
Changed the Pkg to activate the current project. ALso swapped to Cu mechanism. BUT DIDN"T CHANGE ANY FIGURE LABELS or anything else
It should help you get started from the project.toml
Volmer and Heyrosky Ea and A were added from BEP paper for Ag
Volmer and Heyrovsky mechanism with their Ea and A values were added fro BEP paper
the delete was an error
Volmer and Heyrovsky Ea and A values were added for Cu
Morris method for the Cu and Ag but Sobol method still needs accuracy for capturing the error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This has Torrie01's global sensitivity analysis branch rebased into it, but I also converted everything to .jl files from .ipynb using jupytext, before rebasing and fixing conflicts.
You need to
conda install jupytextinto your conda environment.You can manually
jupytext --sync *.jlto make syncronize between your .ipynb and .jl files.In VSCode I am using https://marketplace.visualstudio.com/items?itemName=caenrigen.jupytext-sync to automatically sync.
But you might need to point it to a newer conda environment than is compatible with RMG-Py, just to get a recent enough version of jupytext.