{"id":18925587,"url":"https://github.com/nightmachinery/stochastic","last_synced_at":"2026-03-14T16:30:14.939Z","repository":{"id":115499192,"uuid":"241067133","full_name":"NightMachinery/stochastic","owner":"NightMachinery","description":"My Julia megarepo; an infectious disease model, a Poisson picture redrawing filter, a colorful animator of a 2D ising model, and more.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:39:42.000Z","size":82225,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T17:48:08.283Z","etag":null,"topics":["art","cairo","coronavirus","coronavirus-analysis","ising-model","julia","modeling","poisson-process","sir-model","stochastic-processes","visualization"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NightMachinery.png","metadata":{"files":{"readme":"readme.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-17T09:27:10.000Z","updated_at":"2022-01-26T20:24:47.000Z","dependencies_parsed_at":"2024-11-08T11:22:28.060Z","dependency_job_id":null,"html_url":"https://github.com/NightMachinery/stochastic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fstochastic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fstochastic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fstochastic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fstochastic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightMachinery","download_url":"https://codeload.github.com/NightMachinery/stochastic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921844,"owners_count":19718844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["art","cairo","coronavirus","coronavirus-analysis","ising-model","julia","modeling","poisson-process","sir-model","stochastic-processes","visualization"],"created_at":"2024-11-08T11:12:25.967Z","updated_at":"2026-03-14T16:30:14.905Z","avatar_url":"https://github.com/NightMachinery.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: My Julia Megarepo\n\nThis repository contains my simulation course exercises and other experimentations. I am generally using it as my Julia scratchpad. I'll refactor out some of its parts when I should have the time.\n\nThe things of interest in it currently include:\n\n* An elaborate infectious disease model (which is remarkable in that it runs in a continuous mode, unlike most simulations that run in discrete steps)\n\n** Quickstart: The Infectious Disease Model\n\nYou need Julia v1.5 installed. You can copy my environment from this [[https://github.com/NightMachinary/.shells/tree/0227fb3a76f963137b6c21834ba391d673ce8053/.julia/environments/v1.5][commit]]. The =.julia= directory needs to be in your =HOME= directory (i.e., at =~/.julia=).\n\nThe model was tested with this [[https://github.com/batbone/stochastic/tree/9e3d3d5bbbb2c8975a1dc68aed9ef565c79534db][commit]], though I recommend just using the latest commit. Do not use the readme from that commit, always use the latest master commit for the readme.\n\n- Go to the project directory:\n  ~cd ./project/~\n- Start a Julia REPL:\n  ~julia~\n- Source the code:\n  ~include(\"./prj.jl\")~\n- Now you can run the models. There are a few sample runs with the command that runs them in the project's Telegram [[https://t.me/InfectiousModel][channel]], since Github doesn't show videos. I have also included a few screenshots below.\n\n*** Screenshots\n**** ~withMW(m3_2_1,0.2; discrete_opt=1//24, visualize=true, c=100, initialPeople=gp_H_dV, isolationProbability=0.9, smallGridMode=0, daysInSec=1, simDuration=3000, tracking=true)~\n\nSee the full [[https://t.me/InfectiousModel/71][video]].\n\n[[file:readme.org_imgs/20200817_170159_YrPf7a.png]]\n\n[[file:readme.org_imgs/20200817_170215_9mnH1i.png]]\n\n**** ~withMW(m3_1_2,0.2; discrete_opt=1//24, visualize=true, c=500, isolationProbability=0.3, smallGridMode=10, daysInSec=10, simDuration=1500, tracking=true)~\n\nSee full [[https://t.me/InfectiousModel/68][video]].\n\n[[file:readme.org_imgs/mpv-shot0001.jpg]]\n\n[[file:readme.org_imgs/20200817_170448_0pvUbq.png]]\n\n* A happily-colored ising model\n\nThe code is at [[file:exercises/ising.jl]]. The generated pictures and videos are at [[file:art/ising/]].\n\n# Github can't parse `\"`, or space, or prob a thousand other things ...\n# [[file:art/ising/flashReverse/animateising(colormap=\"D4\",initsleep=1,framesleep=0.15)_H265_ising_(strongest).mp4]]\n\n[[file:readme.org_imgs/ising_d4.mp4]]\n\n[[file:art/ising/d4_rev.png]]\n\n[[file:art/ising/intense_pink.png]]\n\n* An image redrawing filter using Poisson processes\n\nThe code needs refactoring, it's currently at [[file:jo3/pprocessTest.jl][line 108, @plot drawP2D(G=(λ) -\u003e imgrate ...]]. You can see examples at [[file:art/2d/]]. Most generated files have the code that generated them as their filename, or in a companion file with the same name as them. These code fragments might still have used an older API or a global variable, so they might not be copy-pasteable.\n\n[[file:readme.org_imgs/20200817_181209_T1fIpC.png]]\n\n[[file:readme.org_imgs/20200817_181229_8ZwVZQ.png]]\n\n[[file:readme.org_imgs/20200817_181039_EHCgcR.png]]\n\n[[file:readme.org_imgs/20200817_182034_zli1Dr.png]]\n\n[[file:readme.org_imgs/20200817_180422_Ps0b2O.png]]\n\n[[file:readme.org_imgs/20200817_180544_HUj7eO.png]]\n\n* Misc stuff\n\nYou can generally browse [[file:art/]] to see some stuff generated here.\n\n[[file:art/S2.png]]\n\n[[file:art/photo_2020-04-26_02-58-12.jpg]]\n\n[[file:art/S1_Eye_C1.png]]\n\n[[file:art/photo_2020-04-26_02-58-21.jpg]]\n\n[[file:art/stair/seismic.png]]\n\n[[file:art/triangles/flag.png]]\n\n[[file:art/photo_2020-04-26_02-58-17.jpg]]\n\n* Licenses\n\nDual-licensed under MIT and GPL v3 or later. The generated media are also licensed under CC0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Fstochastic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightmachinery%2Fstochastic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Fstochastic/lists"}