Commit c36fe00
authored
maint: read in pos_dict and cell_types (#1195)
This is related to #1168, and is required in order for @katduecker's new
model to be successfully read in from Network JSON files.
This makes a very tiny change in `hnn_io::dict_to_network`, affecting
`hnn_io::read_network_configuration` among others. When a dictionary
of `Network` parameters is being read in (such as from file), the
`Network.pos_dict` and `Network.cell_types` data is passed from the
originating dictionary to the `Network` initializer, instead of being
added to the `Network` object after creation. This takes advantage of
Chetan's updates to `Network` that can use these new arguments. This
allows Network JSON files with custom `cell_types` and/or `pos_dict` to
have that information read in, instead of having it overwritten with the
defaults, which is what is done currently.1 parent d97e77e commit c36fe00
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
532 | 538 | | |
533 | 539 | | |
534 | | - | |
535 | | - | |
536 | 540 | | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | | - | |
544 | | - | |
545 | 547 | | |
546 | 548 | | |
547 | 549 | | |
| |||
0 commit comments