Julia array tips
Convert vector of vector to matrix
Use the stack function.
Convert linear index to 2D indices
Use CartesianIndices((nrow, ncol))
1.
Use the stack function.
Use CartesianIndices((nrow, ncol))
1.
Some notes of Tom Kwong's book Hands on Design patterns in Julia.
When your Julia codebase grows larger, you might want to organize it into modules and packages.
From this discourse thread
Changing parameters using traditional DiffEqCallbacks.jl
with prob.ps[sym] = val
in the middle of a simulation cannot be tracked.
From v10, ModelingToolkit.SymbolicDiscreteCallback
can track changed parameters in a callback. See https://docs.sciml.ai/ModelingToolkit/dev/basics/Events/#save_discretes
For example,
This post will demonstrate my template repositoryabout
jupyter-book
to publish notebooks automatically when changes are pushed to GitHub.Artifacts are data generated by workflows that can be passed to subsequent jobs.
Updating package dependencies automatically as a part of continuous integration (CI).
The actions/cache action caches dependencies for the execution environment.
Git commands, such as checkout, add, create a branch, make a pull request in Github actions.