Giter Club home page Giter Club logo

jl-things's Introduction

jl-things's People

Contributors

dependabot[bot] avatar renovate[bot] avatar sosiristseng avatar wen-wei-s-pr-bot[bot] avatar

Watchers

 avatar  avatar

jl-things's Issues

No output?

Sometimes notebooks have no outputs.

Caching bugs?

assigning symbols to ODEFunction

To use the solution interface with LabelledArrays and ComponentArrays

using LabelledArrays
using DifferentialEquations
using SimpleUnPack
using Plots

## SIR model, in-place form: f!(du, u, p ,t)
function sir!(D, u, p ,t)
	@unpack s, i, r = u
	@unpack β, γ = p
	v1 = β * s * i
	v2 = γ * i

    D.s = -v1
    D.i = v1 - v2
    D.r = v2
	return nothing
end

# Parameters, initial conditions, and time span of the SIR model
p = LVector= 1.0, γ = 0.3)
u0 = LVector(s=0.99, i=0.01, r=0.00)
tspan = (0.0, 20.0)

prob = ODEProblem(sir!, u0, tspan, p) ## Define the problem
sol = solve(prob) ## Solve the problem
sol(0.:1.:20.)[:s] ## Error
plot(sol, idxs=(:s, :i)) ## Works?!

# Let's fix it
f = ODEFunction(sir!, syms=keys(u0), paramsyms=keys(p))
prob = ODEProblem(f, u0, tspan, p) ## Define the problem
sol = solve(prob) ## Solve the problem
sol(0.:1.:20.)[:s] ## Works

plot(sol, idxs=(:s, :i)) ## Works

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
env.Dockerfile
  • julia 1.10.0
  • python 3.12.1-slim
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/download-artifact v4
  • actions/setup-python v5
  • actions/cache v4
  • actions/upload-pages-artifact v3
  • actions/deploy-pages v4
.github/workflows/execute.yml
  • actions/checkout v4
  • docker/login-action v3
  • actions/checkout v4
  • actions/cache v4
  • actions/cache v4
  • actions/upload-artifact v4
.github/workflows/linkcheck.yml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/cache v4
.github/workflows/update-manifest.yml
  • actions/checkout v4
  • tibdex/github-app-token v2
  • peter-evans/create-pull-request v6
pip_requirements
requirements.txt
  • jupyter-book ==1.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

ABM video size too big

Agents.abmvideo

Agents.abmvideo(
    "flocking.mp4", model, agent_step!;
    am = bird_marker,
    framerate = 20, frames = 200,
    figure = (size = (600, 600),),
    title = "Flocking"
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.