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_plot: add support for "just nodes" da0e307ab0a21e565031789260a9160c5ff1b011 I am 2021-04-19 07:33:12
sball.Shell.rvs(): inverse linspace (wouldn't produce NaNs) 58452888a47230ab30c56bc33f5e3c780e60c752 I am 2021-04-18 03:26:21
convex_hull: move QHull from simplex module e5c67ce54fa4c9f3ce15714ebeff7d363d918494 I am 2021-04-17 19:04:00
schemes: comment out dups 8d22480a42926c3a78e62a07be4418e1f8ba350f I am 2021-04-16 23:35:53
convex_hull: split DirectHull into simplified DirectHull itself and CompleteHull b109bbdc325a2a88bf22e9893fa162690bf190f9 I am 2021-04-16 23:26:03
rework convex hull 60185dce0403ba941e849a60b5e43da6ce1fffd4 I am 2021-04-12 17:09:25
sball: add .get_random_directions() function d41131f28937e40eb853a30047de3cfc43cf5fa8 I am 2021-03-24 03:24:41
mplot: plot2D swithed to matplotlib 366326fb53bcbc54d7e6fb108b9dc256833bf679 I am 2021-03-18 01:44:07
three-ways image WIP a2987cde393c4e795342f6dc40d5920760b468d4 I am 2021-03-17 16:37:18
Ghull is ready e1a49fe0cb390ce9664e8f892c1da6d30231cc99 I am 2021-03-16 14:29:09
simplex: finish Ghull 5cb6d06a1c77cdb0cc1d3e83cfb217924b2345f1 I am 2021-03-03 23:06:13
simplex.Ghull: WIP 043724e7d4fe0c25ac698becf6498bc2abb8bf29 I am 2021-03-03 17:06:08
sball: je naimplementována třída Shell b335ba64be48582ca2f31baf035d0f5c6c75090c I am 2021-03-03 13:45:02
sball: new gamma-based solution. Keep the old version as well b6ac51b6b08ca2e7d5c398fa56c5a9a0832ab301 I am 2021-02-24 10:55:11
mart: add convergence plot 85a9ef727d15fc6567b7b0a594ed52cef9fe5680 I am 2021-02-22 23:32:34
mart: add basic plot and scatter functions 20e04c27db7ee3ac3a6418300eb4fc1ef532a1c7 I am 2021-02-22 14:45:31
mart: add convex hull related functions 5284e4c1c747fe25d220e7e3a6a9803d8bc6d4a1 I am 2021-02-21 20:57:52
axes3d_: draw only bottom pane 5a24020e052a7adbc17485b4c9c74d7eea801765 Alex 2021-02-12 20:50:09
mart3d: tri surface fix 2f1889070cea6c97937e00d76ce029744c9f8d07 Alex 2021-02-12 10:01:59
mart3d: add plot_wireframe 8b21a8ca659e4f2146459ea5f4cc006535f51308 I am 2021-02-12 04:45:56
Commit da0e307ab0a21e565031789260a9160c5ff1b011 - qt_plot: add support for "just nodes"
Author: I am
Author date (UTC): 2021-04-19 07:33
Committer name: I am
Committer date (UTC): 2021-04-19 07:33
Parent(s): 58452888a47230ab30c56bc33f5e3c780e60c752
Signer:
Signing key:
Signing status: N
Tree: fbd2ea15a67def8842a1502a5d01748982b2019e
File Lines added Lines deleted
qt_plot.py 32 34
File qt_plot.py changed (mode: 100644) (index 7a5fe07..5d34fb8)
... ... class QtGuiPlot2D(QtGui.QMainWindow):
49 49 #E former self.w = QtGui.QMainWindow() #E former self.w = QtGui.QMainWindow()
50 50 self.app = pg.mkQApp() self.app = pg.mkQApp()
51 51 super().__init__() super().__init__()
52 self.setWindowTitle("%sD: %s" %(sample_box.nvar, sample_box.gm_signature))
52 try:
53 self.setWindowTitle("%sD: %s" %(sample_box.nvar, sample_box.gm_signature))
54 except:
55 self.setWindowTitle("%sD nodes" % sample_box.nvar)
53 56
54 57 # for debug # for debug
55 58 # container for errors # container for errors
 
... ... E Drawing items
388 391 """ """
389 392
390 393
391
392 #class Serie:
393 # def __init__(self, sample, w, **plot_kwargs):
394 # self.sample = sample
395 # self.w = w
396 # self.plot_kwargs = plot_kwargs
397 #
398 # self._draw()
399 #
400 # def _draw(self):
401 # pos = getattr(self.sample, self.w.space)[:,:2]
402 # mask = np.all(np.isfinite(pos), axis=1)
403 # self.plot_item = w.central_widget.plot(pos[mask], **plot_kwargs)
404
405
406 394 class Series: class Series:
407 395 def __init__(self, w, autoredraw=True): def __init__(self, w, autoredraw=True):
408 396 self.w = w self.w = w
 
... ... class BasePlotting:
585 573 symbolSize=size, symbolBrush=(119,172,48), name='Proxy successes') symbolSize=size, symbolBrush=(119,172,48), name='Proxy successes')
586 574 self.proxy_successes.setZValue(85) self.proxy_successes.setZValue(85)
587 575
576
577 self.nodes = plot_widget.plot(pos, pen=None, symbol='o', symbolPen=0.5, \
578 symbolSize=size, name='Nodes')
579 self.nodes.setZValue(80)
580
588 581 self.plot() self.plot()
589 582
590 583 def plot(self): def plot(self):
 
... ... class BasePlotting:
593 586 sample_box = self.w.sample_box[:nsim] sample_box = self.w.sample_box[:nsim]
594 587
595 588 pos = getattr(sample_box, self.w.space)[:,:2] pos = getattr(sample_box, self.w.space)[:,:2]
596 failsi = sample_box.failsi
597
598 try: # proxy denotes to implicitly-known values
599 proxy = sample_box.proxy
600 except AttributeError:
601 proxy = np.full(nsim, False, dtype=np.bool)
602
603 mask = np.all((failsi, ~proxy), axis=0)
604 self.draw(self.failures, pos[mask])
605
606 mask = np.all((~failsi, ~proxy), axis=0)
607 self.draw(self.successes, pos[mask])
608
609 mask = np.all((failsi, proxy), axis=0)
610 self.draw(self.proxy_failures, pos[mask])
611
612 mask = np.all((~failsi, proxy), axis=0)
613 self.draw(self.proxy_successes, pos[mask])
589 if hasattr(sample_box, 'failsi'): #č to je normálně sample_box
590 failsi = sample_box.failsi
591
592 try: # proxy denotes to implicitly-known values
593 proxy = sample_box.proxy
594 except AttributeError:
595 proxy = np.full(nsim, False, dtype=np.bool)
596
597 mask = np.all((failsi, ~proxy), axis=0)
598 self.draw(self.failures, pos[mask])
599
600 mask = np.all((~failsi, ~proxy), axis=0)
601 self.draw(self.successes, pos[mask])
602
603 mask = np.all((failsi, proxy), axis=0)
604 self.draw(self.proxy_failures, pos[mask])
605
606 mask = np.all((~failsi, proxy), axis=0)
607 self.draw(self.proxy_successes, pos[mask])
608
609 else: #č není to teda sample_box...
610 #č snad se nám povede nakreslit aspoň tečky?
611 self.draw(self.nodes, pos)
614 612
615 613
616 614 @staticmethod @staticmethod
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