From 5b35a55a1ef0970534b44c3418ffb4c34eddea08 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Thu, 19 Sep 2024 08:13:24 -0400 Subject: [PATCH] Fix typos (#61) Found via `codespell -q 3 -L abd,cutted,dorder` --- README.md | 2 +- fembygen/Results.py | 4 ++-- fembygen/design/pydoe2/doe_factorial.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5d5f7f..837100a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A FreeCAD module that uses Generative Design to calculate and show structural analysis results ### Background -This project was devoloped based on [Rahul](https://github.com/MightyBucket/) Master's thesis and [Ogeday Yavuz](https://github.com/OgedaYY/) Graduation Thesis. +This project was developed based on [Rahul](https://github.com/MightyBucket/) Master's thesis and [Ogeday Yavuz](https://github.com/OgedaYY/) Graduation Thesis. [František Löffelmann](https://github.com/fandaL)'s [calculix/beso](https://github.com/calculix/beso) topology optimization script was added as a feature recently. The following process image is taken from [Master Thesis Poster of Rahul Jhuree](https://mightybucket.github.io/misc/FYP_poster.pdf): diff --git a/fembygen/Results.py b/fembygen/Results.py index 8354318..80b4e0c 100644 --- a/fembygen/Results.py +++ b/fembygen/Results.py @@ -244,7 +244,7 @@ def calculateFEAMetric(self): FreeCAD.Console.PrintMessage(f"Generation {i+1} Analysis {j+1} result values imported\n") except: FreeCAD.Console.PrintError( - f"During getting result values of Generation {i+1} Analysis {j+1} problem occured. Please check the generation results by opening Gen{i+1} folder in master file directory.\n") + f"During getting result values of Generation {i+1} Analysis {j+1} problem occurred. Please check the generation results by opening Gen{i+1} folder in master file directory.\n") result.append([None]*6) else: FreeCAD.Console.PrintError(f"Generation {i+1} Loadcase {j+1} couldn't imported\n") @@ -630,7 +630,7 @@ def plotParetoGraph(self, index): def normalize(self, vals): - """Resuls range can be different. So, the function make results between 0~1 to calculate ranking score. + """Results range can be different. So, the function make results between 0~1 to calculate ranking score. """ minVal = np.min(vals) maxVal = np.max(vals) diff --git a/fembygen/design/pydoe2/doe_factorial.py b/fembygen/design/pydoe2/doe_factorial.py index 95f6971..ecbcf7a 100644 --- a/fembygen/design/pydoe2/doe_factorial.py +++ b/fembygen/design/pydoe2/doe_factorial.py @@ -373,7 +373,7 @@ def fracfact_opt(n_factors, n_erased, max_attempts=0) : The design is searched by exhaustive search, with the most "promising" combinations attempted first. For large designs it might be unfeasible to attempt all combinations. - Posite values give the number of models to attemps. Zero or negative + Posite values give the number of models to attempts. Zero or negative values indicate all combinations should be attempted. Returns