iam-git / WellMet (public) (License: MIT) (since 2021-08-31) (hash sha1)
WellMet is pure Python framework for spatial structural reliability analysis. Or, more specifically, for "failure probability estimation and detection of failure surfaces by adaptive sequential decomposition of the design domain".
List of commits:
Subject Hash Author Date (UTC)
qt_gui.qt_plot: add (finally!) Numbers class 4cdc658c0fcc857c23c0e39e91e7a1ce5e1b30a1 I am 2022-10-13 06:23:46
qt_gui.qt_gui: show contacts in distance matrix. Based on ContactSolver for now 21bd6101888d9f06d7d6a7c6ba2732ff30fdd68d I am 2022-10-13 04:16:41
voronoi: ContactSolver is ready. Ale je to na nic. Pomalá, potvora 28e2442b0101eac2407ed4a69c6f757ffd579cf1 I am 2022-10-13 04:14:59
voronoi: add some preliminary lines of ContactSolver. WIP 6a203b278c9fa6de7da75c402c80f78d40164fdf I am 2022-10-12 23:38:59
voronoi: přídat pár těžkých smyček. WIP 7b0ffb602ae00ab2f12dc98d34c35ec20afa3cc4 I am 2022-10-12 00:13:36
add to repo voronoi module. WIP f43768c22d88fac7c7095be02d8c9b5620153976 I am 2022-10-11 03:29:49
convex_hull.Grick: malý puntičkářský fix v get_r() cfa07257b9ebadc21f2bd295d35978072fac19e9 I am 2022-10-10 07:14:26
qt_gui.qt_plot: add Grick to Ghull widget d90b9a87c3ef0989951a45b2a22346381ce16f02 I am 2022-10-10 03:17:24
convex_hull: implement Grick convex hull aproximation d09ca2e6aca41cfc67f3303eb97b97dd9c6f1fba I am 2022-10-10 03:15:52
qt_gui.qt_gui: distance matrix viewer is ready a532e5259c081a1aff193d3b61e0104c42b08f20 I am 2022-10-08 20:52:14
qt_gui.qt_gui: prepare distance matrix window 4eaea3305643c60c35f0b22421a7e57dbe7a7817 I am 2022-10-08 02:59:01
qt_gui.qt_graph_widgets: set up x limits for all graph widgets 413d114f6a4e4b45c6cd44959cc42588bb7c8008 I am 2022-10-07 22:54:46
qt_gui.qt_plot: set up equal aspect by default 11bfe09b3e96881ef6f7c8202a6723b6e8adc03a I am 2022-10-07 21:41:18
qt_gui.qt_gui: hide "connect/disconnect" button. It wasn't really supported d9f195fe0611d6cf9a8154f0175c6c9506d56247 I am 2022-10-07 21:33:07
qt_gui.qt_plot: fix zero r cirkle (off by one error) 681397de6d075b693897d5f64004c0eb481fd36f I am 2022-10-07 20:34:44
qt_gui: replace globally QtGui by QtWidgets 969a659ae31728e75f587f25f54bab1ae5d6bfff I am 2022-10-07 12:45:34
qt_gui: add radia in Gaussian space (GRaph) widget e3f5be57dcdc6bdd06cda0594ffd795ef5bc8ccc I am 2022-10-07 01:15:38
testcases.testcases_2d: fix natafm_plane pf 75006ccd448c9717c13659e8ceb68800fbda39a7 I am 2022-06-26 12:03:39
misc: add entropy formula 72736d485b4f0fa912a47a49f72954e1ec06c03f I am 2022-06-26 12:02:52
testcases.gaussian_2D: one more product... e835ab15321169c2da085a6bb74e1ed749e67f14 I am 2022-05-11 15:38:24
Commit 4cdc658c0fcc857c23c0e39e91e7a1ce5e1b30a1 - qt_gui.qt_plot: add (finally!) Numbers class
Author: I am
Author date (UTC): 2022-10-13 06:23
Committer name: I am
Committer date (UTC): 2022-10-13 06:23
Parent(s): 21bd6101888d9f06d7d6a7c6ba2732ff30fdd68d
Signer:
Signing key:
Signing status: N
Tree: d3d49a2e4c6e90f788bc5c7c60fd968db22517bd
File Lines added Lines deleted
wellmet/qt_gui/qt_plot.py 73 0
File wellmet/qt_gui/qt_plot.py changed (mode: 100644) (index e0026e3..f70b948)
... ... class QtGuiPlot2D(qt_gui.QtGuiWindow):
42 42 self.view_items.append(UnitCube(self)) self.view_items.append(UnitCube(self))
43 43 self.view_items.append(AspectLock(self)) self.view_items.append(AspectLock(self))
44 44 self.view_items.append(LastShot(self)) self.view_items.append(LastShot(self))
45 self.view_items.append(Numbers(self))
45 46 self.view_items.append(Circles(self)) self.view_items.append(Circles(self))
46 47 self.view_items.append(Isocurves(self)) self.view_items.append(Isocurves(self))
47 48 self.view_items.append(Boundaries(self)) self.view_items.append(Boundaries(self))
 
... ... class BasePlotting:
323 324 plot_item.hide() plot_item.hide()
324 325
325 326
327
328
329 class Numbers:
330 def __init__(self, w):
331
332 self.w = w
333 self.w.slice_changed.connect(self.replot)
334 self.w.space_changed.connect(self.replot)
335 self.w.redraw_called.connect(self.redraw)
336
337 self.item = QtWidgets.QListWidgetItem('Numbers')
338 self.item.setFlags(self.item.flags() | QtCore.Qt.ItemIsUserCheckable)
339 self.item.setCheckState(QtCore.Qt.Unchecked)
340 self.w.list_view.addItem(self.item)
341
342
343 self.w.list_view.itemChanged.connect(self.show_slot)
344
345
346
347
348 def redraw(self):
349 self.plot_items = []
350 self.replot()
351
352
353 def show_slot(self, item):
354 if item is self.item:
355 if self.item.checkState():
356 #for item in self.plot_items:
357 # item.show()
358
359 #оӵ Мед сюредалоз!
360 self.replot()
361
362 else: #оӵ Медам сюреда!
363 for item in self.plot_items:
364 item.hide()
365
366
367
368 def replot(self):
369 """
370 on space_chainged
371 or something like this
372 when we need to completely
373 redraw
374 """
375 if self.item.checkState():
376 nsim = self.w.slider.value()
377 sample = self.w.sample_box.f_model[:nsim]
378 pos = getattr(sample, self.w.space)[:,:2]
379
380 plot_widget = self.w.central_widget
381
382 for i in range(min(nsim, len(self.plot_items))):
383 self.plot_items[i].setPos(*pos[i])
384 self.plot_items[i].show()
385
386 if len(self.plot_items) < nsim:
387 for i in range(len(self.plot_items), nsim):
388 item = pg.TextItem(str(i))
389 plot_widget.addItem(item)
390 item.setPos(*pos[i])
391 self.plot_items.append(item)
392 else:
393 for i in range(nsim, len(self.plot_items)):
394 self.plot_items[i].hide()
395
396
397
398
326 399 class UnitCube: class UnitCube:
327 400 def __init__(self, w): def __init__(self, w):
328 401 self.w = w self.w = w
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/iam-git/WellMet

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/iam-git/WellMet

Clone this repository using git:
git clone git://git.rocketgit.com/user/iam-git/WellMet

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main