diff --git a/webapp/components/definition/plots/TimeRange.js b/webapp/components/definition/plots/TimeRange.js
index 398dbedb..4cd3c1bf 100644
--- a/webapp/components/definition/plots/TimeRange.js
+++ b/webapp/components/definition/plots/TimeRange.js
@@ -1,10 +1,9 @@
import React, { Component } from 'react';
import TextField from '@material-ui/core/TextField';
-import AdapterComponent from '../../general/AdapterComponent';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledAdapterComponent = PythonControlledCapability.createPythonControlledControl(AdapterComponent);
-
+import { AdapterComponent } from 'netpyne/components';
+
+
export default class TimeRange extends Component {
constructor (props) {
@@ -14,7 +13,7 @@ export default class TimeRange extends Component {
render () {
return (
-
{
if (state[state.lastUpdated].toString().endsWith(".")) {
@@ -32,7 +31,7 @@ export default class TimeRange extends Component {
>
-
+
);
}
diff --git a/webapp/components/definition/plots/plotTypes/Plot2Dnet.js b/webapp/components/definition/plots/plotTypes/Plot2Dnet.js
index b7228883..af68353e 100644
--- a/webapp/components/definition/plots/plotTypes/Plot2Dnet.js
+++ b/webapp/components/definition/plots/plotTypes/Plot2Dnet.js
@@ -1,12 +1,12 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import Select from '../../../general/Select';
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNESelectField,
+ NetPyNECheckbox
+} from 'netpyne/components';
+
export default class Plot2Dnet extends React.Component {
@@ -18,7 +18,7 @@ export default class Plot2Dnet extends React.Component {
render () {
var tag = "simConfig.analysis['plot2Dnet']"
return
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotConn.js b/webapp/components/definition/plots/plotTypes/PlotConn.js
index d70743bd..2afeebd7 100644
--- a/webapp/components/definition/plots/plotTypes/PlotConn.js
+++ b/webapp/components/definition/plots/plotTypes/PlotConn.js
@@ -1,10 +1,11 @@
import React, { Component } from 'react';
-import Select from '../../../general/Select';
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNESelectField
+} from 'netpyne/components';
+
export default class plotConn extends React.Component {
@@ -16,7 +17,7 @@ export default class plotConn extends React.Component {
render () {
var tag = "simConfig.analysis['plotConn']"
return
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotGranger.js b/webapp/components/definition/plots/plotTypes/PlotGranger.js
index ccf9f436..bde57413 100644
--- a/webapp/components/definition/plots/plotTypes/PlotGranger.js
+++ b/webapp/components/definition/plots/plotTypes/PlotGranger.js
@@ -1,12 +1,11 @@
import React, { Component } from 'react';
-import TextField from '@material-ui/core/TextField';
import TimeRange from '../TimeRange'
-import ListComponent from '../../../general/List';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledListComponent = PythonControlledCapability.createPythonControlledControl(ListComponent);
+import {
+ NetPyNEField,
+ NetPyNETextField,
+ ListComponent
+} from 'netpyne/components';
export default class PlotGranger extends React.Component {
@@ -20,27 +19,27 @@ export default class PlotGranger extends React.Component {
var content = (
-
+
-
+
-
+
-
+
-
+
-
+
@@ -48,7 +47,7 @@ export default class PlotGranger extends React.Component {
-
+
);
diff --git a/webapp/components/definition/plots/plotTypes/PlotLFP.js b/webapp/components/definition/plots/plotTypes/PlotLFP.js
index 6d6c5234..87d85832 100644
--- a/webapp/components/definition/plots/plotTypes/PlotLFP.js
+++ b/webapp/components/definition/plots/plotTypes/PlotLFP.js
@@ -1,16 +1,12 @@
import React from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
import TimeRange from '../TimeRange'
-import ListComponent from '../../../general/List';
-import NetPyNEField from '../../../general/NetPyNEField';
-
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledListComponent = PythonControlledCapability.createPythonControlledControl(ListComponent);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
+import {
+ NetPyNEField,
+ NetPyNECheckbox,
+ NetPyNETextField,
+ NetPyNESelectField,
+ ListComponent,
+} from 'netpyne/components';
export default class PlotLFP extends React.Component {
@@ -23,11 +19,11 @@ export default class PlotLFP extends React.Component {
var tag = "simConfig.analysis['plotLFP']"
return
-
+
-
+
@@ -35,31 +31,31 @@ export default class PlotLFP extends React.Component {
-
+
-
+
-
+
-
+
-
+
-
+
-
+
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotRaster.js b/webapp/components/definition/plots/plotTypes/PlotRaster.js
index e78c158a..64af9978 100644
--- a/webapp/components/definition/plots/plotTypes/PlotRaster.js
+++ b/webapp/components/definition/plots/plotTypes/PlotRaster.js
@@ -1,15 +1,14 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
-import TimeRange from '../TimeRange'
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
+import TimeRange from '../TimeRange';
+
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNESelectField,
+ NetPyNECheckbox,
+ NetPyNETextField
+} from 'netpyne/components';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
export default class PlotRaster extends React.Component {
@@ -26,7 +25,7 @@ export default class PlotRaster extends React.Component {
render () {
var tag = "simConfig.analysis['plotRaster']"
return
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotRatePSD.js b/webapp/components/definition/plots/plotTypes/PlotRatePSD.js
index 7dd132a5..87314892 100644
--- a/webapp/components/definition/plots/plotTypes/PlotRatePSD.js
+++ b/webapp/components/definition/plots/plotTypes/PlotRatePSD.js
@@ -1,13 +1,12 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import TimeRange from '../TimeRange'
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
+import TimeRange from '../TimeRange'
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNECheckbox,
+ NetPyNETextField
+} from 'netpyne/components';
export default class PlotRatePSD extends React.Component {
@@ -19,7 +18,7 @@ export default class PlotRatePSD extends React.Component {
render () {
var tag = "simConfig.analysis['plotRatePSD']"
return
-
-
+
-
+
-
+
-
+
-
+
-
+
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotShape.js b/webapp/components/definition/plots/plotTypes/PlotShape.js
index c720e682..4d2f8fdc 100644
--- a/webapp/components/definition/plots/plotTypes/PlotShape.js
+++ b/webapp/components/definition/plots/plotTypes/PlotShape.js
@@ -1,15 +1,12 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
-import ListComponent from '../../../general/List';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
-var PythonControlledListComponent = PythonControlledCapability.createPythonControlledControl(ListComponent);
+import {
+ NetPyNEField,
+ NetPyNECheckbox,
+ NetPyNETextField,
+ NetPyNESelectField,
+ ListComponent
+} from 'netpyne/components';
export default class PlotShape extends React.Component {
@@ -22,55 +19,55 @@ export default class PlotShape extends React.Component {
var tag = "simConfig.analysis['plotShape']"
return
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotSpikeHist.js b/webapp/components/definition/plots/plotTypes/PlotSpikeHist.js
index e36b4cbb..2e67b2d9 100644
--- a/webapp/components/definition/plots/plotTypes/PlotSpikeHist.js
+++ b/webapp/components/definition/plots/plotTypes/PlotSpikeHist.js
@@ -1,15 +1,13 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
import TimeRange from '../TimeRange'
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNECheckbox,
+ NetPyNETextField,
+ NetPyNESelectField
+} from 'netpyne/components';
export default class PlotSpikeHist extends React.Component {
@@ -21,7 +19,7 @@ export default class PlotSpikeHist extends React.Component {
render () {
var tag = "simConfig.analysis['plotSpikeHist']"
return
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotSpikeStats.js b/webapp/components/definition/plots/plotTypes/PlotSpikeStats.js
index 218dcdc5..46a2f818 100644
--- a/webapp/components/definition/plots/plotTypes/PlotSpikeStats.js
+++ b/webapp/components/definition/plots/plotTypes/PlotSpikeStats.js
@@ -1,15 +1,12 @@
import React, { Component } from 'react';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
-import TimeRange from '../TimeRange'
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import ListComponent from '../../../general/List';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
-var PythonControlledListComponent = PythonControlledCapability.createPythonControlledControl(ListComponent);
+import TimeRange from '../TimeRange'
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNESelectField,
+ ListComponent
+} from 'netpyne/components';
export default class PlotSpikeStats extends React.Component {
@@ -21,7 +18,7 @@ export default class PlotSpikeStats extends React.Component {
render () {
var tag = "simConfig.analysis['plotSpikeStats']"
return
}
diff --git a/webapp/components/definition/plots/plotTypes/PlotTraces.js b/webapp/components/definition/plots/plotTypes/PlotTraces.js
index 98bede95..bdc1158e 100644
--- a/webapp/components/definition/plots/plotTypes/PlotTraces.js
+++ b/webapp/components/definition/plots/plotTypes/PlotTraces.js
@@ -1,15 +1,12 @@
import React, { Component } from 'react';
-import Checkbox from '../../../general/Checkbox';
-import TextField from '@material-ui/core/TextField';
-import Select from '../../../general/Select';
import TimeRange from '../TimeRange'
-import NetPyNEIncludeConnection from '../../../../redux/reduxconnect/NetPyNEIncludeConnection';
-import NetPyNEField from '../../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-var PythonControlledCheckbox = PythonControlledCapability.createPythonControlledControl(Checkbox);
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
-var PythonControlledSelectField = PythonControlledCapability.createPythonControlledControl(Select);
+import {
+ NetPyNEInclude,
+ NetPyNEField,
+ NetPyNESelectField,
+ NetPyNECheckbox
+} from 'netpyne/components';
export default class PlotTraces extends React.Component {
@@ -21,7 +18,7 @@ export default class PlotTraces extends React.Component {
render () {
var tag = "simConfig.analysis['plotTraces']"
return
}
diff --git a/webapp/components/definition/populations/Dimensions.js b/webapp/components/definition/populations/Dimensions.js
index d7b59440..2953d985 100644
--- a/webapp/components/definition/populations/Dimensions.js
+++ b/webapp/components/definition/populations/Dimensions.js
@@ -5,10 +5,10 @@ import MenuItem from '@material-ui/core/MenuItem';
import Utils from '../../../Utils';
import { withStyles } from '@material-ui/core/styles';
-import NetPyNEField from '../../general/NetPyNEField';
-var PythonControlledCapability = require('geppetto-client/js/communication/geppettoJupyter/PythonControlledCapability');
-
-var PythonControlledTextField = PythonControlledCapability.createPythonControlledControl(TextField);
+import {
+ NetPyNEField,
+ NetPyNETextField,
+} from 'netpyne/components';
const styles = ({ spacing }) => ({
selectField: {
@@ -112,7 +112,7 @@ class DimensionsComponent extends Component {
{
this.state.dimension != undefined && this.state.dimension != ""
?
- ({
fields: {
@@ -61,7 +62,7 @@ class NetPyNEPopulation extends React.Component {
cellModelFields = [];
// Get Fields for new metadata
cellModelFields = Utils.getFieldsFromMetadataTree(response, key => (
-
));
@@ -156,7 +157,7 @@ class NetPyNEPopulation extends React.Component {
/>
- {
Utils.evalPythonMessage("netpyne_geppetto.propagate_field_rename", ['cellType', newValue, oldValue])
this.props.updateCards()
@@ -166,7 +167,7 @@ class NetPyNEPopulation extends React.Component {
- {
Utils.evalPythonMessage("netpyne_geppetto.propagate_field_rename", ['cellModel', newValue, oldValue])
this.props.updateCards()
@@ -175,7 +176,7 @@ class NetPyNEPopulation extends React.Component {
/>
-
+
{dialogPop}
)
diff --git a/webapp/components/definition/populations/NetPyNEPopulations.js b/webapp/components/definition/populations/NetPyNEPopulations.js
index cc90fbb0..889fbc54 100644
--- a/webapp/components/definition/populations/NetPyNEPopulations.js
+++ b/webapp/components/definition/populations/NetPyNEPopulations.js
@@ -1,10 +1,15 @@
import React, { Component } from 'react';
import { Card, CardHeader, CardContent } from '@material-ui/core';
import Utils from '../../../Utils';
-import NetPyNEHome from '../../general/NetPyNEHome';
-import NetPyNEAddNew from '../../general/NetPyNEAddNew';
-import NetPyNEThumbnail from '../../general/NetPyNEThumbnail';
-import NetPyNEPopulationConnection from '../../../redux/reduxconnect/NetPyNEPopulationConnection';
+
+import {
+ NetPyNEHome,
+ NetPyNEAddNew,
+ NetPyNEThumbnail,
+ NetPyNEPopulation,
+} from 'netpyne/components';
+
+
import Dialog from '@material-ui/core/Dialog/Dialog';
import Button from '@material-ui/core/Button';
@@ -189,17 +194,12 @@ export default class NetPyNEPopulations extends React.Component {
}
var selectedPopulation = undefined;
if ((this.state.selectedPopulation !== undefined) && Object.keys(model).indexOf(this.state.selectedPopulation) > -1) {
- selectedPopulation =