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)
step back: introduce box_estimations, keep "estimations" for user ones dde983d57423e28083980cbae05f0a81fc8311e6 I am 2022-12-10 03:54:09
simplex.BetterCubatureIntegration: hotfix f8a607e5d60c591eb81037010717519c1fe6e993 I am 2022-12-08 00:29:57
qt_gui.qt_gui: add EstimationTableWidget bb44fc8a056ed90906c217cfc95f7cabc6ef71eb I am 2022-12-07 23:17:42
remove deprecated never used Plotly code d42ebb3535e4736a1e9fdb84c8d6dae633c83a33 I am 2022-12-07 15:03:51
dicebox.circumtri.CircumTri: enable estimations 4fe25ad47d71b1fd19fe00ad03d9b320b8c8614c I am 2022-12-07 14:30:46
dicebox: introduce new clean experimental CircumTri box aca3e971212590a59e9d07a3ff1aa952d02a848b I am 2022-12-07 04:19:55
simplex.Triangulation: keep locally pdfs and failsi, send tuple on simplex invalidation d2885ce44585e22294f9940159d6313642164f4c I am 2022-12-07 04:14:05
convex_hull.QHull: manual update() fix 5ccff702b9920c7525c88d306f2300cd43b2e76b I am 2022-12-07 04:02:39
simplex: implement BetterCubatureIntegration 88b14adc4423f0587bd51bed06e74ce6d0d60bd1 I am 2022-12-05 22:20:31
convex_hull.BrickHull: add get_hyperplane_distances() method a use it as fallback for the Qhull 48d35c953a5cbbf739e5e838709bc00fe2f047d4 I am 2022-12-05 03:30:12
convex_hull.Qhull: add get_hyperplane_distances() method, add auto_update parameter 28aada4b79b52f58c4ad43d270be997ec6359166 I am 2022-12-04 22:49:41
move diceboxes to the dedicated drawer 31c7d30ed43f04b9469df843f909814c062adf5e I am 2022-12-04 21:27:37
reader: finally, add new Store class for the estimations 673b7daa8213807d0217089b3317674595156f6d I am 2022-12-03 17:46:22
f_models.SNorm: hotfix 5f364d1770e18d18fb810760b6207c905b551762 I am 2022-12-02 21:33:48
f_models: rewrite SNorm in lazy way. Old SNorm class renamed to SNormClassic 3b6805b2a1d0bce88960bc016bbe74bb5274810b I am 2022-12-02 21:11:37
simplex: implement CircumCenter class 0a1a67122854cfb331f696163f22cfc67331f3e8 I am 2022-12-01 01:40:38
voronoi.ContactVoronoi: add explore_couple() method 72f4dffa5e8e7ee3165df4648f6a35d75d6678a3 I am 2022-11-29 11:59:07
voronoi: almost finished 00b697466c226212aeb1ea76a717cf3db48c3187 I am 2022-11-28 16:28:48
voronoi: WIP 29c59822f96df4efd6d1c6555a6fa083a869a2c8 I am 2022-11-28 11:14:50
voronoi: WIP, clean up 8e776235f7603a9bc7f3d8254976224a81bb153e I am 2022-11-27 19:56:34
Commit dde983d57423e28083980cbae05f0a81fc8311e6 - step back: introduce box_estimations, keep "estimations" for user ones
Author: I am
Author date (UTC): 2022-12-10 03:54
Committer name: I am
Committer date (UTC): 2022-12-10 03:54
Parent(s): f8a607e5d60c591eb81037010717519c1fe6e993
Signer:
Signing key:
Signing status: N
Tree: 70eabf222c6eb888db86722587adfe432efc33d7
File Lines added Lines deleted
wellmet/dicebox/circumtri.py 15 12
wellmet/qt_gui/qt_gui.py 4 4
File wellmet/dicebox/circumtri.py changed (mode: 100644) (index 9df95d1..983d072)
... ... TriEstimation = namedtuple('TriEstimation', (
34 34 "shell", "shell",
35 35 "outer", "outer",
36 36 "FORM_outside", "FORM_outside",
37 "TwoFORM_outside",
37 38 "orth_outside", "orth_outside",
38 39 "shell_budget", "shell_budget",
39 40 "shell_inside", "shell_inside",
 
... ... class CircumTri:
83 84
84 85 bx.sample_box = sample_box bx.sample_box = sample_box
85 86
87 #č přece ponechame složku pro uživatelské odhady
88 #č stm kód může semka něco ukladat
89 bx.estimations = []
90
86 91 #č vítejte nové uložiště odhadů. #č vítejte nové uložiště odhadů.
87 92 #č Odhady z stm kódu už ale nemají na tohle sahat #č Odhady z stm kódu už ale nemají na tohle sahat
88 93 if hasattr(bx, 'filename'): if hasattr(bx, 'filename'):
89 bx.estimations = Store.create(bx.filename + "_tri", TriEstimation)
94 bx.box_estimations = Store.create(bx.filename + "_tri", TriEstimation)
90 95 else: else:
91 bx.estimations = []
96 bx.box_estimations = []
92 97
93 98 bx.CC = sx.CircumCenter(sample_box.nvar) bx.CC = sx.CircumCenter(sample_box.nvar)
94 99
 
... ... class CircumTri:
103 108 """ """
104 109 Returns dictionary of parameters the DiceBox was initialized with Returns dictionary of parameters the DiceBox was initialized with
105 110 """ """
106 return ""
107 return {'sample_object':bx.sample_box, 'scheme':bx.scheme.name,\
108 'tri_space':bx.tri_space, 'tree_space':bx.tree_space,\
109 'kechato_space':bx.kechato_space, 'potential':bx.potential,\
110 'p_norm':bx.p_norm, 'shell_budget':bx.shell_budget,\
111 'outer_budget':bx.outer_budget}
111 return {'sample_box':bx.sample_box, 'scheme':bx.scheme.name,\
112 'tri_space':bx.tri_space, 'entropy_mode':bx.entropy_mode,\
113 'shell_budget':bx.shell_budget,'outer_budget':bx.outer_budget}
112 114
113 115
114 116 def __repr__(bx): def __repr__(bx):
 
... ... class CircumTri:
331 333 bx.convex_hull.update() bx.convex_hull.update()
332 334 bx.estimate_outside() bx.estimate_outside()
333 335
334 bx.estimations.append(bx.get_pf_estimation())
336 bx.box_estimations.append(bx.get_pf_estimation())
335 337
336 338
337 339
 
... ... class CircumTri:
392 394 #č první úkol máme splněný #č první úkol máme splněný
393 395 bx.ghull_estimation = ghull_estimation bx.ghull_estimation = ghull_estimation
394 396 bx.convex_hull_estimation = convex_hull_estimation bx.convex_hull_estimation = convex_hull_estimation
397
398 #č kvůli názvu neleze do namedtuple
399 global_stats['TwoFORM_outside'] = global_stats.pop('2FORM_outside')
400
395 401 bx.global_stats = global_stats bx.global_stats = global_stats
396 402 bx._logger(msg="outside estimation:", ghull_stats=global_stats) bx._logger(msg="outside estimation:", ghull_stats=global_stats)
397 403
 
... ... class CircumTri:
431 437 #č takže musíme sami lepit nové etikety #č takže musíme sami lepit nové etikety
432 438 bx.global_stats['nsim'] = bx.nsim bx.global_stats['nsim'] = bx.nsim
433 439
434 #č kvůli názvu neleze do namedtuple
435 bx.global_stats.pop('2FORM_outside', None)
436
437 440 failsi = bx.failsi failsi = bx.failsi
438 441
439 442 if 'tri' in dir(bx): if 'tri' in dir(bx):
File wellmet/qt_gui/qt_gui.py changed (mode: 100644) (index 20d16ba..1451b57)
... ... class QtGuiWindow(QtWidgets.QMainWindow):
261 261 #č graphy už nemusí jít po stm widgetech #č graphy už nemusí jít po stm widgetech
262 262 if hasattr(self.sample_box, 'estimations'): if hasattr(self.sample_box, 'estimations'):
263 263 dock = QtWidgets.QDockWidget("Estimation data", self) dock = QtWidgets.QDockWidget("Estimation data", self)
264 dock.setWidget(EstimationTableWidget(self.sample_box.estimations, self, dock))
264 widget = EstimationTableWidget(self.sample_box.box_estimations, self.box_runned, dock)
265 dock.setWidget(widget)
265 266 self.dockables.append(dock) self.dockables.append(dock)
266 267 self.tabifyDockWidget(self.dockables[0], dock) self.tabifyDockWidget(self.dockables[0], dock)
267 268
 
... ... E Miscellaneous
549 550
550 551
551 552 class EstimationTableWidget(pg.TableWidget): class EstimationTableWidget(pg.TableWidget):
552 def __init__(self, estimations, w, parent=None):
553 def __init__(self, estimations, signal, parent=None):
553 554 super().__init__(parent) super().__init__(parent)
554 555 # sb like samplebox, of course # sb like samplebox, of course
555 556 self.estimations = estimations self.estimations = estimations
556 w.box_runned.connect(self.update)
557 w.estimation_added.connect(self.update)
557 signal.connect(self.update)
558 558
559 559 self.setFormat('%g') self.setFormat('%g')
560 560 self.update(self.estimations) self.update(self.estimations)
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