diff --git a/README.md b/README.md index 9b566bbe4..f9d070033 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +# Flow360 + +![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/Flow360/pypi-publish.yml) +![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/flow360/test.yml?label=tests) +[![PyPI version shields.io](https://img.shields.io/pypi/v/Flow360)](https://pypi.python.org/pypi/flow360/) + +![](https://raw.githubusercontent.com/flexcompute/Flow360/main/img/Flow360-logo.svg) + + # How to use Flow360 python client ## install @@ -19,13 +28,13 @@ You can set your *api-key* by the following methods: # Development ## setup 0. clone repo -1. Install poetry +1. Install poetry ``pip install poetry`` 2. Install dependencies: ``poetry install`` ## run examples ``poetry run python examples/case_results.py`` ## check in -1. ``poetry run pytest`` +1. ``poetry run pytest -rA`` 2. ``black .`` 3. ``pylint flow360 --rcfile .pylintrc`` diff --git a/flow360/component/utils.py b/flow360/component/utils.py index a0754aa58..fda031bb3 100644 --- a/flow360/component/utils.py +++ b/flow360/component/utils.py @@ -3,6 +3,7 @@ """ import uuid + # pylint: disable=redefined-builtin def is_valid_uuid(id, ignore_none=False): """ diff --git a/flow360/component/volume_mesh.py b/flow360/component/volume_mesh.py index b44b31fdd..fb4966c4f 100644 --- a/flow360/component/volume_mesh.py +++ b/flow360/component/volume_mesh.py @@ -129,7 +129,6 @@ def get_boundaries_from_file(cgns_file: str, solver_version: str = None): if section.attrs["label"].decode() != "ZoneBC_t": continue for bc_name, bc_zone in section.items(): - if bc_zone.attrs["label"].decode() == "BC_t": names.append(f"{zone_name}/{bc_name}") diff --git a/img/Flow360-logo.svg b/img/Flow360-logo.svg new file mode 100644 index 000000000..1504a911e --- /dev/null +++ b/img/Flow360-logo.svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +