Subject | Hash | Author | Date (UTC) |
---|---|---|---|
qt_gui.qt_dicebox: add dumb DiceBox widget | d609cbbd928859a7c2ebf05ecdec2878d5356f9c | I am | 2022-01-24 18:43:53 |
mplot.maxes: parametrize tri plots | 395bbad17802accecdc978462b0aed5a8828534b | I am | 2022-01-23 04:35:10 |
mplot.maxes: adjust triple plot marker sizes and lineweights | 7e8b6eea3a27569542b5d15a2002ee1b77205672 | I am | 2022-01-22 21:39:02 |
mplot.maxes: add convergence legend | 59405e29e76faf2a74d5bddd994c0252f7dfdb7d | I am | 2022-01-22 01:48:40 |
mplot.mart: keep frame in U space | b6fda7b143da2c7a129ac0db12cf33e5325547d5 | I am | 2022-01-21 03:22:38 |
mplot.mfigs: add more of that points + triangulation plots, you know... | 68072e812fb7ed4a39cfbf138cd216e7d4214d8a | I am | 2022-01-20 19:25:43 |
testcases.gaussian_2D: add fajvka, circle, parabola. Justify sinball | 330595743710deee9924cd077302f5c45fae7f83 | I am | 2022-01-20 19:24:41 |
mplot: šťourání s diagramy | 4831d87d7bfb953656ed68028bffe73597752a66 | I am | 2022-01-20 01:34:22 |
mplot: use empty markers for proxy points | dd9e0c8f79977a92615ef408862298ed5ee0d000 | I am | 2022-01-19 22:30:37 |
mplot.mart: set up spines linewidth | 4220ec6f715c78c1feac9966b5804ee995029bdf | I am | 2022-01-19 19:43:18 |
mplot: reduce arrow and axis linewidth | 666b1455f15ec803106fbfd773c1d3aa3877a1f9 | I am | 2022-01-19 18:04:37 |
mplot.maxes: přídáme férové cenzurováné vzorkování | 4b488e62a969f972882f982e903c6a3d252274a6 | I am | 2022-01-19 17:39:14 |
simplex: add simple filter function for rejection sampling | a58d3814dfd3366ef536c90b37fd50e3edccc9e9 | I am | 2022-01-19 17:38:08 |
whitebox: add rude approximation for sumexp. (Je teda opravdu hodně nepřesná) | 281f66ac70e21756415c8efecfdee50873b34b58 | I am | 2022-01-18 22:25:51 |
whitebox: add four betas class | 57a25000259e74f1ac28bb1bac6b0cc01dd5201c | I am | 2022-01-18 21:43:00 |
whitebox: introduce Gaussian_Z_prod_2D class with respective exact solution | 13e592f107918d4cc3daaeec1f08e38779a943aa | I am | 2022-01-18 18:51:23 |
mplot: polish maxes and mfigs | dfb9193da5fcb633fbe58fb39ff7b4432de4a5c5 | I am | 2022-01-18 00:44:56 |
testcases: add gaussian_2D module | c5e279c08bba39bdd82c79d15d00241c786c795d | I am | 2022-01-18 00:06:36 |
qt_gui.qt_testcases: simplify code for the unparametrized testcases | 60b7678186738107b3346beae7fb0744570d60fc | I am | 2022-01-18 00:05:34 |
mplot.mart: move setup_labels to mart module | 9d7783a3a9905a72c51b4fec76e367dffdbc4563 | I am | 2022-01-17 17:33:16 |
File | Lines added | Lines deleted |
---|---|---|
qt_gui/qt_dicebox.py | 16 | 3 |
File qt_gui/qt_dicebox.py changed (mode: 100644) (index 3ab88f9..f9f925f) | |||
1 | 1 | import sys | import sys |
2 | 2 | import numpy as np | import numpy as np |
3 | 3 | from .. import schemes | from .. import schemes |
4 | from ..dicebox import Goal | ||
4 | from ..dicebox import Goal, DiceBox | ||
5 | 5 | import pyqtgraph as pg | import pyqtgraph as pg |
6 | 6 | from pyqtgraph.Qt import QtGui, QtCore, QtWidgets | from pyqtgraph.Qt import QtGui, QtCore, QtWidgets |
7 | 7 | ||
8 | 8 | spaces = ['R', 'aR', 'Rn', 'aRn', 'P', 'GK', 'G', 'aG', 'U', 'aU'] | spaces = ['R', 'aR', 'Rn', 'aRn', 'P', 'GK', 'G', 'aG', 'U', 'aU'] |
9 | 9 | ||
10 | class DumbDiceBoxWidget(QtWidgets.QWidget): | ||
11 | def __init__(self, wt, parent=None): | ||
12 | self.box = wt | ||
13 | super().__init__(parent=parent) | ||
14 | |||
15 | def setup_box(self): | ||
16 | # do the thing | ||
17 | self.box.sample_box = DiceBox(self.box.sample_box) | ||
18 | |||
10 | 19 | class GoalWidget(pg.parametertree.ParameterTree): | class GoalWidget(pg.parametertree.ParameterTree): |
11 | 20 | def __init__(self, wt, parent=None): | def __init__(self, wt, parent=None): |
12 | 21 | self.box = wt | self.box = wt |
... | ... | class SetupDiceBoxWidget(pg.LayoutWidget): | |
147 | 156 | if tab_index == 0: | if tab_index == 0: |
148 | 157 | self.goal.setup_box() | self.goal.setup_box() |
149 | 158 | elif tab_index == 1: | elif tab_index == 1: |
150 | self.tab_2d.extract_selected_item() | ||
159 | self.dice_box.setup_box() | ||
151 | 160 | else: | else: |
152 | 161 | raise | raise |
153 | 162 | self.app.quit() | self.app.quit() |
... | ... | class SetupDiceBoxWidget(pg.LayoutWidget): | |
158 | 167 | ||
159 | 168 | # Add tabs | # Add tabs |
160 | 169 | self.goal = GoalWidget(self.box, self) | self.goal = GoalWidget(self.box, self) |
161 | self.tabs.addTab(self.goal,"Goal") | ||
170 | self.tabs.addTab(self.goal, "Goal") | ||
171 | |||
172 | # Add tabs | ||
173 | self.dice_box = DumbDiceBoxWidget(self.box, self) | ||
174 | self.tabs.addTab(self.dice_box, "Dumb DiceBox") | ||
162 | 175 | ||
163 | 176 | #self.tab_2d = TestCasesListWidget(testcases_2D, self) | #self.tab_2d = TestCasesListWidget(testcases_2D, self) |
164 | 177 | #self.tabs.addTab(self.tab_2d,"2D testcases") | #self.tabs.addTab(self.tab_2d,"2D testcases") |