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)
convex_hull.QHull: change enough_points into property ae4f9b4d70bb43556874bc6d698cb1cc09ad9430 I am 2021-04-19 17:02:35
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
Commit ae4f9b4d70bb43556874bc6d698cb1cc09ad9430 - convex_hull.QHull: change enough_points into property
Author: I am
Author date (UTC): 2021-04-19 17:02
Committer name: I am
Committer date (UTC): 2021-04-19 17:02
Parent(s): da0e307ab0a21e565031789260a9160c5ff1b011
Signer:
Signing key:
Signing status: N
Tree: 1b9a8c27267ae796560f8b1b8dadfe266adff4bc
File Lines added Lines deleted
convex_hull.py 8 7
File convex_hull.py changed (mode: 100644) (index a83cd27..d5911fd)
... ... class QHull:
430 430 def regen(self): def regen(self):
431 431 points = getattr(self.sample, self.space) points = getattr(self.sample, self.space)
432 432 self.convex_hull = spatial.ConvexHull(points, incremental=self.incremental) self.convex_hull = spatial.ConvexHull(points, incremental=self.incremental)
433
434 def enough_points(self): return self.sample.nvar < self.sample.nsim
435 433
436 434
437 435 def __getattr__(self, attr): def __getattr__(self, attr):
 
... ... class QHull:
443 441 #č a ihned ji vrátit #č a ihned ji vrátit
444 442 self.regen() self.regen()
445 443 return self.convex_hull return self.convex_hull
444
445 elif attr == 'enough_points':
446 return self.sample.nvar < self.sample.nsim
446 447
447 448 elif attr == 'A': elif attr == 'A':
448 449 return self.convex_hull.equations[:,:-1] return self.convex_hull.equations[:,:-1]
 
... ... class QHull:
450 451 return self.convex_hull.equations[:,-1] return self.convex_hull.equations[:,-1]
451 452
452 453 elif attr == 'points': elif attr == 'points':
453 if self.enough_points():
454 if self.enough_points:
454 455 return self.convex_hull.points return self.convex_hull.points
455 456 else: else:
456 457 return getattr(self.sample, self.space) return getattr(self.sample, self.space)
457 458
458 459 elif attr == 'npoints': elif attr == 'npoints':
459 if self.enough_points():
460 if self.enough_points:
460 461 return self.convex_hull.npoints return self.convex_hull.npoints
461 462 else: else:
462 463 return len(self.sample) return len(self.sample)
463 464
464 465 elif attr == 'nsimplex': elif attr == 'nsimplex':
465 if self.enough_points():
466 if self.enough_points:
466 467 return self.convex_hull.nsimplex return self.convex_hull.nsimplex
467 468 else: else:
468 469 return 0 return 0
 
... ... class QHull:
488 489
489 490
490 491 def is_inside(self, nodes): def is_inside(self, nodes):
491 if self.enough_points():
492 if self.enough_points:
492 493 self._update() self._update()
493 494 x = getattr(nodes, self.space) x = getattr(nodes, self.space)
494 495
 
... ... class QHull:
516 517 # valid only if space==G # valid only if space==G
517 518 def get_r(hull): def get_r(hull):
518 519 if hull.space=='G': if hull.space=='G':
519 if hull.enough_points():
520 if hull.enough_points:
520 521 hull._update() hull._update()
521 522 b = hull.convex_hull.equations[:,-1] b = hull.convex_hull.equations[:,-1]
522 523 return -np.nanmax(b) return -np.nanmax(b)
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