From 569f1bdcc6bc4f021c449f027ec92d65bfa89c02 Mon Sep 17 00:00:00 2001 From: Maciej Skarysz <83596707+maciej-flexcompute@users.noreply.github.com> Date: Fri, 31 Mar 2023 17:07:50 +0200 Subject: [PATCH 1/7] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9b566bbe4..87f0a93f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# Flow360 + +![tests](https://github.com/flexcompute/Flow360/actions/workflows//test.yml/badge.svg) +![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/Flow360/[pypi-publish.yml) +![PyPI](https://img.shields.io/pypi/v/Flow360) + # How to use Flow360 python client ## install From dea8c525a2ca18a0b28d8408d81091fd0bd72e83 Mon Sep 17 00:00:00 2001 From: Maciej Skarysz <83596707+maciej-flexcompute@users.noreply.github.com> Date: Fri, 31 Mar 2023 17:10:20 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87f0a93f9..cc7fb071e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Flow360 -![tests](https://github.com/flexcompute/Flow360/actions/workflows//test.yml/badge.svg) -![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) +![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/Flow360/pypi-publish.yml) ![PyPI](https://img.shields.io/pypi/v/Flow360) # How to use Flow360 python client From 209d5ea8971c069f45cb5ec6e857db8d9a1a7865 Mon Sep 17 00:00:00 2001 From: Maciej Skarysz <83596707+maciej-flexcompute@users.noreply.github.com> Date: Fri, 31 Mar 2023 17:12:37 +0200 Subject: [PATCH 3/7] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc7fb071e..089fe7579 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/flow360/test.yml?label=tests) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/Flow360/pypi-publish.yml) -![PyPI](https://img.shields.io/pypi/v/Flow360) +[![PyPI version shields.io](https://img.shields.io/pypi/v/Flow360)](https://pypi.python.org/pypi/flow360/) + # How to use Flow360 python client From 02a54e30be9e7d69cc80f048d9f93af840870ead Mon Sep 17 00:00:00 2001 From: Maciej Skarysz <83596707+maciej-flexcompute@users.noreply.github.com> Date: Fri, 31 Mar 2023 17:20:19 +0200 Subject: [PATCH 4/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 089fe7579..8af21835e 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,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`` From ccb14d5c2b35a55b46a8adca5b80760943ddb13c Mon Sep 17 00:00:00 2001 From: Maciej Skarysz Date: Fri, 31 Mar 2023 17:27:59 +0200 Subject: [PATCH 5/7] added logo to readme --- README.md | 2 + img/Flow360-logo.svg | 157 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 img/Flow360-logo.svg diff --git a/README.md b/README.md index 8af21835e..9aa54f600 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/Flow360/pypi-publish.yml) [![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 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 895a98f47abac6922fa06ce5b0accdfedfa06f7b Mon Sep 17 00:00:00 2001 From: Maciej Skarysz Date: Fri, 31 Mar 2023 17:28:54 +0200 Subject: [PATCH 6/7] update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9aa54f600..f9d070033 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Flow360 -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flexcompute/flow360/test.yml?label=tests) ![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) From fed22ae8ae319b4fdfaebd6cd131accc240f9827 Mon Sep 17 00:00:00 2001 From: Maciej Skarysz Date: Fri, 31 Mar 2023 17:33:02 +0200 Subject: [PATCH 7/7] fixed black formatting error --- flow360/component/utils.py | 1 + flow360/component/volume_mesh.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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}")