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
Browse filesBrowse the repository at this point in the historyBrowse files
authored
[MRG] Validate param files and network configs against model_variant (#14)
* Validate param files and network configs against model_variant
Introduce a 'model_variant' entry in the param .json files so that each
network model can check that it was given parameters written for it.
- preserve 'model_variant' in Params, which otherwise drops any key that
is not part of the legacy defaults. This also fixes default values
being silently substituted for the parameters of default_duecker_ET.json,
whose 'sim_prefix' no longer marked it as a duecker_ET_model param file
- store the variant on the Network and write it to the network config
- accept abbreviated variant names, e.g. 'neymotin' or 'duecker_ET'
- check that the params define the cell types of the network being built:
pyramidal and basket cells for neymotin_2020_model (and the law_2021_model
and calcium_model networks built on it), pyramidal cells and interneurons
for duecker_ET_model
- check the cell types of a network config against its variant when reading
it back in, pointing out when a neymotin_2020_model network is being read
as a duecker_ET_model
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* test pass
* add model variant check method
* remove sim_prefix
* update model_variant bsl_cor check
* [MRG] MAINT cap ruff version due to breaking changes (#1333)
* MAINT cap ruff version due to breaking changes
* FIX forgot to update standalone ruff install
* removed model variant bsl_cor checks because tests failing
* remove model validation cheks
* remove stale import
* remove sim_prefix
* trivial change to re-run test
* ruff
* remove final sim_prefix
* update test and validation function
* DOC some docstring and comment changes
* FIX remove str type check on params_fname is none passed
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Austin E. Soplata <asoplata@users.noreply.github.com>
Co-authored-by: Austin E. Soplata <me@asoplata.com>
0 commit comments