Skip to content

Commit e1fb9c6

Browse files
committed
netpyne-106 Fix missing setting update on density type change
1 parent 7bf1d7e commit e1fb9c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

webapp/components/definition/subcellConnectivity/NetPyNESubcellsConnectivityRule.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export default class NetPyNESubCellsConnectivityRule extends React.Component {
140140
switch (this.state.type) {
141141
case '2DMap':
142142
case '1DMap':
143+
Utils.execPythonMessage(`netpyne_geppetto.netParams.defineCellShapes = True`)
143144
return (
144145
<>
145146
<NetPyNEField id="netParams.subConnParams.density.gridY" className="listStyle">
@@ -167,6 +168,7 @@ export default class NetPyNESubCellsConnectivityRule extends React.Component {
167168
</>
168169
)
169170
case 'distance':
171+
Utils.execPythonMessage(`netpyne_geppetto.netParams.defineCellShapes = False`)
170172
return (
171173
<>
172174
<NetPyNEField id="netParams.subConnParams.density.ref_sec">
@@ -204,6 +206,8 @@ export default class NetPyNESubCellsConnectivityRule extends React.Component {
204206
</NetPyNEField>
205207
</>
206208
)
209+
default:
210+
Utils.execPythonMessage(`netpyne_geppetto.netParams.defineCellShapes = False`)
207211
}
208212
}
209213

0 commit comments

Comments
 (0)