{"id":21030702,"url":"https://github.com/wangl-cc/recordedarrays.jl","last_synced_at":"2025-03-13T19:25:48.116Z","repository":{"id":43449267,"uuid":"350998003","full_name":"wangl-cc/RecordedArrays.jl","owner":"wangl-cc","description":"Record changes of your array automatically.","archived":false,"fork":false,"pushed_at":"2022-03-02T01:25:19.000Z","size":11475,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:49:24.906Z","etag":null,"topics":["arrays","julia"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangl-cc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-24T08:13:48.000Z","updated_at":"2022-01-11T03:08:05.000Z","dependencies_parsed_at":"2022-08-03T05:00:51.904Z","dependency_job_id":null,"html_url":"https://github.com/wangl-cc/RecordedArrays.jl","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangl-cc%2FRecordedArrays.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangl-cc%2FRecordedArrays.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangl-cc%2FRecordedArrays.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangl-cc%2FRecordedArrays.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangl-cc","download_url":"https://codeload.github.com/wangl-cc/RecordedArrays.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243466987,"owners_count":20295310,"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":["arrays","julia"],"created_at":"2024-11-19T12:19:52.375Z","updated_at":"2025-03-13T19:25:48.088Z","avatar_url":"https://github.com/wangl-cc.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RecordedArrays.jl\n\n[![Build Status](https://github.com/wangl-cc/RecordedArrays.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/wangl-cc/RecordedArrays.jl/actions/workflows/ci.yml)\n[![pkgeval](https://juliahub.com/docs/RecordedArrays/pkgeval.svg)](https://juliahub.com/ui/Packages/RecordedArrays/TOzPf)\n[![codecov](https://codecov.io/gh/wangl-cc/RecordedArrays.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/wangl-cc/RecordedArrays.jl)\n[![GitHub](https://img.shields.io/github/license/wangl-cc/RecordedArrays.jl)](https://github.com/wangl-cc/RecordedArrays.jl/blob/master/LICENSE)\n[![Docs stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://wangl-cc.github.io/RecordedArrays.jl/stable)\n[![Docs dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://wangl-cc.github.io/RecordedArrays.jl/dev)\n\nDuring running a simulation, one of the most important but annoying part is\nrecording and processing the changing values of state.\nThis package provides \"recorded\" types,\nchanges of which will be recorded automatically.\n\n**Note:** There are huge changes between `v0.3` and `v0.4`.\nYou can not load and process data of `v0.3` with `v0.4`.\n\n## Installation\n\nThis is a registered package, it can be installed with the `add` command in\nthe Pkg REPL:\n```\npkg\u003e add RecordedArrays\n```\n\n## Quick Start\n\n```julia\njulia\u003e using RecordedArrays # load this package\n\njulia\u003e c = ContinuousClock(3); # define a clock\n\njulia\u003e v = recorded(DynamicEntry, c, [0, 1]) # create a recorded array with the clock\n2-element recorded(::Vector{Int64}):\n 0\n 1\n\njulia\u003e v + v # math operations work as normal array\n2-element Vector{Int64}:\n 0\n 2\n\njulia\u003e v .* v # broadcast works as normal array as well\n2-element Vector{Int64}:\n 0\n 1\n\njulia\u003e increase!(c, 1) # when time goes and array changes, increase the define clock firstly\n1\n\njulia\u003e v[1] += 1 # change array's element\n1\n\njulia\u003e increase!(c, 1) # when time goes and array changes, increase the define clock firstly\n2\n\njulia\u003e push!(v, 1) # push a new element\n3-element recorded(::Vector{Int64}):\n 1\n 1\n 1\n\njulia\u003e es = getentries(v) # view recorded changes\n3-element Vector{DynamicEntry{Int64, Int64}}:\n DynamicEntry{Int64, Int64}([0, 1], [0, 1])\n DynamicEntry{Int64, Int64}([1], [0])\n DynamicEntry{Int64, Int64}([1], [2])\n\njulia\u003e es[1] # the changes of the first element of `v`, which changed to 1 at `t=1`\nDynamicEntry{Int64, Int64} with timestamps:\n 0\n 1\n\njulia\u003e gettime(es[1], 0:2) # get the value of the first element at time 0, 1 and 2\n3-element Vector{Int64}:\n 0\n 1\n 1\n\njulia\u003e es[3] # the changes of the third element of `v`, which was pushed at `t=2`\nDynamicEntry{Int64, Int64} with timestamps:\n 2\n\njulia\u003e gettime(es[3], 0:2) # get the value of the first element at time 0, 1 and 2\n3-element Vector{Int64}:\n 0\n 0\n 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangl-cc%2Frecordedarrays.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangl-cc%2Frecordedarrays.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangl-cc%2Frecordedarrays.jl/lists"}