Skip to content

Use kwargs instead of strict dict#4

Merged
TonyZhou729 merged 3 commits intomainfrom
kwargs
Feb 12, 2026
Merged

Use kwargs instead of strict dict#4
TonyZhou729 merged 3 commits intomainfrom
kwargs

Conversation

@cgiovanetti
Copy link
Collaborator

Minimal changes to allow the user to specify everything in Model.__init__ as kwargs, rather than forcing a dict. Dict is still supported as long as the dictionary is unpacked as it is passed in (e.g. for a dictionary specs, the user can use model = Model(**specs)).

Also added __call__ to main.Model, which just calls run_cosmology.

2/3 example notebooks updated. ABCMB_Basics.ipynb needs an overhaul in light of new output structure, so I only just began to update it.

@cgiovanetti
Copy link
Collaborator Author

No meaningful difference in compile time on A100

@TonyZhou729 TonyZhou729 merged commit 0c233ff into main Feb 12, 2026
1 check passed
@cgiovanetti cgiovanetti deleted the kwargs branch February 12, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants