Skip to content

Commit e4f7a49

Browse files
authored
Merge pull request #126 from mtezzele/readme
Readme
2 parents 9a71fa0 + 4da7730 commit e4f7a49

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
# PyGeM [![Build Status](https://travis-ci.org/mathLab/PyGeM.svg)](https://travis-ci.org/mathLab/PyGeM) [![Coverage Status](https://coveralls.io/repos/github/mathLab/PyGeM/badge.svg?branch=master)](https://coveralls.io/github/mathLab/PyGeM?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6195fc94d5bc4a61988c401fc98484a9)](https://www.codacy.com/app/mathLab/PyGeM?utm_source=github.com&utm_medium=referral&utm_content=mathLab/PyGeM&utm_campaign=Badge_Grade)
2-
Python Geometrical Morphing.
1+
<p align="center">
2+
<a href="http://mathlab.github.io/PyGeM/" target="_blank" >
3+
<img alt="Python Geometrical Morphing" src="docs/source/_static/logo_PyGeM.png" width="200" />
4+
</a>
5+
</p>
6+
<p align="center">
7+
<a href="LICENSE.rst" target="_blank">
8+
<img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square">
9+
</a>
10+
<a href="https://travis-ci.org/mathLab/PyGeM" target="_blank">
11+
<img alt="Build Status" src="https://travis-ci.org/mathLab/PyGeM.svg">
12+
</a>
13+
<a href="https://coveralls.io/github/mathLab/PyGeM?branch=master" target="_blank">
14+
<img alt="Coverage Status" src="https://coveralls.io/repos/github/mathLab/PyGeM/badge.svg?branch=master">
15+
</a>
16+
<a href="https://www.codacy.com/app/mathLab/PyGeM?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=mathLab/PyGeM&amp;utm_campaign=Badge_Grade" target="_blank">
17+
<img alt="Codacy Badge" src="https://api.codacy.com/project/badge/Grade/6195fc94d5bc4a61988c401fc98484a9">
18+
</a>
19+
</p>
20+
321

4-
![Python Geometrical Morphing](readme/logo_PyGeM_small.png)
22+
[PyGeM](http://mathlab.github.io/PyGeM/) (Python Geometrical Morphing) is a python package that allows you to deform a given geometry or mesh with different deformation techniques such as FFD, RBF and IDW.
523

624
## Table of contents
725
* [Description](#description)
@@ -19,15 +37,15 @@ Python Geometrical Morphing.
1937
* [License](#license)
2038

2139
## Description
22-
**PyGeM** is a python library using **Free Form Deformation**, **Radial Basis Functions** and **Inverse Distance Weighting** to parametrize and morph complex geometries. It is ideally suited for actual industrial problems, since it allows to handle:
40+
**PyGeM** is a python package using **Free Form Deformation**, **Radial Basis Functions** and **Inverse Distance Weighting** to parametrize and morph complex geometries. It is ideally suited for actual industrial problems, since it allows to handle:
2341

24-
- Computer Aided Design files (in .iges and .stl formats)
42+
- Computer Aided Design files (in .iges, .step, and .stl formats)
2543
- Mesh files (in .unv and OpenFOAM formats)
2644
- Output files (in .vtk format)
2745
- LS-Dyna Keyword files (.k format)
2846

2947
By now, it has been used with meshes with up to 14 milions of cells. Try with more and more complicated input files!
30-
See the **Examples** section below to have an idea of the potential of this package.
48+
See the [Examples](#examples) section below to have an idea of the potential of this package.
3149

3250

3351
## Graphical User Interface

pygem/stephandler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ def load_shape_from_file(self, filename):
5656
if return_transfer:
5757
# load all shapes in one
5858
shape = reader.OneShape()
59-
60-
return shape
59+
return shape
60+
else:
61+
raise RuntimeError("Shapes not loaded.")
62+
else:
63+
raise RuntimeError("Cannot read the file.")
6164

6265
def write_shape_to_file(self, shape, filename):
6366
"""

readme/logo_PyGeM_small.png

-17.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)