Skip to content

Commit 3a8220e

Browse files
committed
v0.7.0
1 parent 5a7affc commit 3a8220e

File tree

5 files changed

+30
-54
lines changed

5 files changed

+30
-54
lines changed

dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

images/s.png

6.4 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "statsim",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Web app for statistical simulations and bayesian inference",
55
"main": "electron.js",
66
"private": true,

src/app.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ label {
1515
text-transform: capitalize;
1616
}
1717

18+
.md-theme-default.md-boards > .md-boards-navigation .md-board-header {
19+
color: rgba(0, 0, 0, .2) !important;
20+
}
21+
22+
.md-theme-default.md-boards > .md-boards-navigation .md-board-header.md-active, .md-theme-default.md-boards > .md-boards-navigation .md-board-header:active {
23+
color: #3f51b5 !important;
24+
}
25+
26+
1827
#loader span {
1928
font-size: 15px;
2029
display: inline-block;
@@ -290,6 +299,13 @@ textarea {
290299
right: 0 !important;
291300
left: inherit !important;
292301
position: absolute;
302+
margin: 3px 10px !important;
303+
}
304+
305+
.content .dygraph-title {
306+
font-weight: bold !important;
307+
font-size: 16px !important;
308+
margin: 3px 10px !important;
293309
}
294310

295311
.content .chart-heavy .dygraph-legend > span {
@@ -318,7 +334,9 @@ textarea {
318334
}
319335

320336
.content .summary h3 {
321-
margin: 2px 0;
337+
margin: 6px 0;
338+
font-size: 20px;
339+
font-weight: 400;
322340
}
323341

324342
.content .summary table td{

src/app.html

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</md-menu-content>
4545
</md-menu>
4646
<!-- <p class="logo-icon">{{ icon }}</p> -->
47-
<h2 class="md-title logo" style="flex: 1"> StatSim <sup class="version">0.6.1</sup></h2>
47+
<h2 class="md-title logo" style="flex: 1"> StatSim <sup class="version">0.7.0</sup></h2>
4848
<md-menu md-align-trigger md-size="4" md-direction="bottom left">
4949
<md-button class="md-raised md-primary add-block-button" md-menu-trigger>
5050
<md-icon>add</md-icon>
@@ -466,51 +466,6 @@ <h2 class="md-title logo" style="flex: 1"> StatSim <sup class="version">0.6.1</s
466466
</md-button>
467467
</md-whiteframe>
468468

469-
<!--
470-
<md-input-container>
471-
<label for="distributionType">Distribution:</label>
472-
<md-select
473-
name="distributionType"
474-
id="distributionType"
475-
v-model="block.distribution"
476-
>
477-
<md-option
478-
v-for="(params, distributionType) in distributions"
479-
:value="distributionType"
480-
@selected="block.params = {}"
481-
>{{ distributionType }}</md-option>
482-
</md-select>
483-
</md-input-container>
484-
<md-input-container
485-
v-if="block.distribution.length"
486-
v-for="(paramOptions, param) in distributions[block.distribution]"
487-
md-clearable
488-
>
489-
<label>{{ param }}</label>
490-
<md-input
491-
v-model="block.params[param]"
492-
></md-input>
493-
</md-input-container>
494-
<p style="font-size: 12px; color: 999;">
495-
In case of vectors you can get index as <b>_j</b><br>
496-
Dimension-wise indexes for tensors are <b>_j0, _j1, ...</b><br>
497-
Values stored in <b>_v</b>
498-
</p>
499-
</md-whiteframe>
500-
<md-card-expand>
501-
<md-card-actions>
502-
<span style="flex: 1"></span>
503-
<md-button class="md-icon-button" md-expand-trigger>
504-
<md-icon>help</md-icon>
505-
</md-button>
506-
</md-card-actions>
507-
508-
<md-card-content>
509-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio itaque ea, nostrum odio. Dolores, sed accusantium quasi non, voluptas eius illo quas, saepe voluptate pariatur in deleniti minus sint. Excepturi.
510-
</md-card-content>
511-
</md-card-expand>
512-
-->
513-
<!-- <pre>{{ block }}</pre> -->
514469
</md-card-content>
515470

516471

@@ -600,30 +555,33 @@ <h3 v-if="blocks.length > 0" style="margin: 35px 0 0 0">Model output:</h3>
600555
</div>
601556

602557
<!-- Empty model button -->
603-
<md-boards v-if="!blocks.reduce((a, b) => b.show || a, false)":md-controls="true" :md-infinite="true" :md-swipeable="true" style="height: auto !important; margin-bottom: 70px;">
558+
<md-boards v-if="!blocks.reduce((a, b) => b.show || a, false)":md-controls="true" :md-infinite="true" :md-swipeable="true" style="height: auto !important; margin-bottom: 10px;">
604559
<md-board id="slide1">
605560
<p><b><span style="border: 1px solid #5db53b; background-color: #5db53b; color: white; padding: 3px 4px;">&nbsp;Add blocks&nbsp;</span> to your model.</b> After you open StatSim or create a new model, add some elements (blocks) to it. There are multiple types of blocks. Data blocks can be constants or input parameters, expressions set relationships between elements, random variables describe stochastic values.</p>
606561
</md-board>
607562
<md-board id="slide2">
608-
<p><b>Update block settings.</b>Update block settings. Each block has its own settings. They determine how the program evaluates a block and its future usage. Almost each block has the Show in results checkbox. It determines if the block is shown in the output.</p>
563+
<p><b>Update block settings.</b> Each block has its own settings. They determine how the program evaluates a block and its future usage. Almost each block has the <i>Show in results</i> checkbox. It determines if the block is shown in the output.</p>
609564
</md-board>
610565
<md-board id="slide3">
611-
<p><b>Set simulation <span style="border: 1px solid #e91e63; background-color: #e91e63; color: white; padding: 3px 4px;">Params</span>.</b> After you created and set all the blocks it's time to choose a simulation method. The simple rule is if you don't use random variables select Deterministic. For simulations choose Rejection Sampling or MCMC, for ML select Optimization. </p>
566+
<p><b>Set simulation <span style="border: 1px solid #e91e63; background-color: #e91e63; color: white; padding: 3px 4px;">Params</span>.</b> After you created and set all the blocks it's time to choose a simulation method. The simple rule is if you don't use random variables select <i>Deterministic</i>. For simulations choose <i>Rejection Sampling</i> or <i>MCMC</i>, for ML select <i>Optimization</i>. </p>
612567
</md-board>
613568
<md-board id="slide4">
614569
<p><b><span style="border: 1px solid #3f51b5; background-color: #3f51b5; color: white; padding: 3px 4px;">&nbsp;Run&nbsp;</span> your model</b> after saving it. If you don't use a server for simulations StatSim may become unresponsive and you may lose your data. In case everything went right you get some informative charts or scalar values as a result. Compile your model to binaries if you want to use it as a separate app.</p>
615570
</md-board>
616571
</md-boards>
617572

618573

574+
<div class="stat-seal" style="text-align: center;">
575+
<img src="images/s.png" style="width: 100px; height: auto; opacity: 0.35; margin: 20px 0px"></img>
576+
</div>
619577
<!-- Model control -->
620578
<md-button v-on:click.native="duplicateModel()">
621579
<md-icon>flip_to_front</md-icon>
622-
Duplicate model
580+
Duplicate
623581
</md-button>
624582
<md-button v-on:click.native="openDialog('remove-dialog')" :disabled="(models.length <= 1)" class="md-accent">
625583
<md-icon>delete_outlined</md-icon>
626-
Remove model
584+
Remove
627585
</md-button>
628586
</div>
629587

0 commit comments

Comments
 (0)