You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using Sciline for a little, it has become evident that (as anticipated) we need a more convenient way of replacing providers. There are two options:
Remove the checks in __setitem__, set_provider, ... which prevent replacements. Note that this may be tricky, since we can have parameters, providers, generic providers, as well as param tables. That is, care must be taken (and a lot of tests be written).
Simpler options: Provide dict-like helpers to store providers prior to pipeline creation. Users can currently word around this by writing a simple as_dict function that parses the return type hints and uses them as keys.
The text was updated successfully, but these errors were encountered:
After using Sciline for a little, it has become evident that (as anticipated) we need a more convenient way of replacing providers. There are two options:
__setitem__
,set_provider
, ... which prevent replacements. Note that this may be tricky, since we can have parameters, providers, generic providers, as well as param tables. That is, care must be taken (and a lot of tests be written).as_dict
function that parses the return type hints and uses them as keys.The text was updated successfully, but these errors were encountered: