SciML / SciML/LabelledArrays.jl

Create subsets with labels

Open
#59 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
125
Forks
20
Avg merge
6h 3m
Merged PRs (30d)
10

Description

When working with parameter sets, often a subset of parameters are optimized, or studied in a sensitivity analysis. Extracting subsets is currently difficult with LabelledArrays.

Therefore, a subset function would be nice.

julia> zs = SLVector(a=1.0,b=2.0,c=3.0);
julia> zsSub = subset(zs, (:c,:a))
2-element SLArray{Tuple{2},Float64,1,2,(:c, :a)}:
 3.0
 1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the existing LabelledArrays APIs for labelled arrays and parameter selection, then reproduce the Julia example in the issue. Done means a subset function can select labels such as (:c, :a), preserve that requested order, and return the corresponding labelled array.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.