Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore descending into tuples #629

Open
cliffckerr opened this issue Nov 19, 2024 · 0 comments
Open

Explore descending into tuples #629

cliffckerr opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature
Milestone

Comments

@cliffckerr
Copy link
Member

The last item is skipped, since it's a tuple -- can this restriction be removed?

import sciris as sc
import starsim as ss

pars = sc.objdict(
    par1 = 'temp',
    par2 = ss.dur(100, 'year'),
    stable_dur_pars=dict(
    teens=[
        # (mu,stdev) for levels 0, 1, 2
        ss.dur(100, 'year'),
        [ss.dur(100, 'year'),  ss.dur(1, 'year')],
        [ss.dur(8, 'year'),  ss.dur(2, 'year')],
        (ss.dur(1e-4, 'month'), ss.dur(1e-4, 'month')),
    ],
  )
)

res = sc.search(pars, type=ss.TimePar)
@cliffckerr cliffckerr added this to the Version 3.2.1 milestone Dec 4, 2024
@cliffckerr cliffckerr added the enhancement New feature label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

No branches or pull requests

1 participant