Skip to content

Commit d132d98

Browse files
committed
Merge branch 'development' of https://github.com/MetaCell/netpyne-ui into feature/557
2 parents fa3fa1d + fd62884 commit d132d98

19 files changed

Lines changed: 1393 additions & 4723 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jedi==0.17.0
2323
Jinja2==2.11.2
2424
jsonpickle==2.1.0
2525
jsonschema==3.2.0
26-
jupyter_geppetto==1.1.1
26+
jupyter_geppetto==1.1.5
2727
jupyter-client==7.0.6
2828
jupyter-core==4.9.1
2929
jupyter-server==1.11.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setuptools.setup(
1717
name="netpyne_ui",
18-
version="0.8.0",
18+
version="0.8.1",
1919
url="https://github.com/MetaCell/NetPyNE-UI",
2020
author="MetaCell",
2121
author_email="info@metacell.us",

tests/frontend/e2e/package-lock.json

Lines changed: 3 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/frontend/e2e/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,9 +4052,9 @@ minimatch@^3.0.4:
40524052
brace-expansion "^1.1.7"
40534053

40544054
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
4055-
version "1.2.5"
4056-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
4057-
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
4055+
version "1.2.6"
4056+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
4057+
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
40584058

40594059
mixin-deep@^1.2.0:
40604060
version "1.3.2"

utilities/install.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def main(netpyne_branch, workspace_branch, geppetto_branch=None, skipNpm=False,
136136
execute(cmd=['npm', 'ci'], cwd=os.path.join(DEPS_DIR, META_DIR, JUPYTER_DIR, 'js'))
137137
execute(cmd=['npm', 'run', 'build-dev' if development else 'build'],
138138
cwd=os.path.join(DEPS_DIR, META_DIR, JUPYTER_DIR, 'js'))
139-
139+
140+
execute(cmd=['jupyter', 'nbextension', 'uninstall', 'jupyter_geppetto'])
140141
execute(cmd=['jupyter', 'nbextension', 'install', '--py', '--symlink', '--sys-prefix', 'jupyter_geppetto'])
141142
execute(cmd=['jupyter', 'nbextension', 'enable', '--py', '--sys-prefix', 'jupyter_geppetto'])
142143
execute(cmd=['jupyter', 'nbextension', 'enable', '--py', '--sys-prefix', 'widgetsnbextension'])

webapp/Main.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ import '@metacell/geppetto-meta-ui/flex-layout/style/dark.scss';
1313
global.GEPPETTO_CONFIGURATION = require('./GeppettoConfiguration.json');
1414
const { initGeppetto } = require('@metacell/geppetto-meta-client/GEPPETTO');
1515

16-
Sentry.init({
17-
dsn: 'https://d8bf7e40eec34cb9891f6dd8207b5e83@sentry.metacell.us/6',
18-
integrations: [
19-
new CaptureConsole({
20-
levels: ['error'],
21-
}),
22-
],
23-
tracesSampleRate: 1.0,
24-
});
16+
if (process.env.NODE_ENV == 'production')
17+
{
18+
Sentry.init({
19+
dsn: 'https://d8bf7e40eec34cb9891f6dd8207b5e83@sentry.metacell.us/6',
20+
integrations: [
21+
new CaptureConsole({
22+
levels: ['error'],
23+
}),
24+
],
25+
tracesSampleRate: 1.0,
26+
});
27+
}
28+
2529

2630
initGeppetto();
2731
require('./css/netpyne.less');

webapp/Utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const Utils = {
2525
},
2626

2727
captureSentryException (e) {
28-
Sentry.captureException(e);
28+
if (process.env.NODE_ENV == 'production')
29+
Sentry.captureException(e);
2930
console.error(e);
3031
},
3132

webapp/components/general/Dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const AboutContent = withStyles(styles)(({ classes }) => (
2626
<img width="250" src={logoNetpyne} />
2727
<Box m={1}>
2828
<Link variant="h5" style={{ display: 'block' }} href="https://github.com/MetaCell/NetPyNE-UI" target="_blank">
29-
NetPyNE-UI v0.8.0
29+
NetPyNE-UI v0.8.1
3030
</Link>
3131
<Link variant="h5" style={{ display: 'block' }} href="https://github.com/Neurosim-lab/netpyne" target="_blank">
3232
NetPyNE v1.0.2.1

webapp/components/layout/defaultLayout.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ export default {
44
tabSetHeaderHeight: 26,
55
tabSetTabStripHeight: 26,
66
enableEdgeDock: false,
7-
borderBarSize: 0,
7+
borderBarSize: 1,
8+
borderEnableDrop: false,
89
},
910
borders: [
1011
{
1112
type: 'border',
1213
location: 'bottom',
1314
children: [],
15+
size: 1,
16+
barSize: 1,
17+
enableDrop: false,
1418
},
1519
],
1620
layout: {

webapp/components/topbar/dialogs/SaveFile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ const saveOptions = [
3434
},
3535
];
3636

37+
const getTimeStamp = () => new Date().toGMTString().replace(',', '').replace(/[ ,:]/g, '_');
38+
3739
export default class SaveFile extends React.Component {
3840
constructor (props) {
3941
super(props);
4042
this.state = {
41-
fileName: 'output',
43+
fileName: 'output_' + getTimeStamp(),
4244
netParams: true,
4345
simConfig: true,
4446
simData: true,

0 commit comments

Comments
 (0)