Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPACS-Creator: Add error handling when a section should be added in (or next to) a segment containing guide curves #1039

Merged

Conversation

svengoldberg
Copy link
Contributor

@svengoldberg svengoldberg commented Nov 29, 2024

Currently, in the CPACS-Creator a section can be added within or next to a segment that contains guide curves (issue #626).
Right now, this results in an error occuring elsewhere or undefined behaviour. Therefore, for the moment it should not be allowed for a user to do this.
From a CPACS perspective it seems reasonable: The guide curves are generally defined after all sections are created as the guide curves depent on them.

Fixes #626

If users seek for this feature, we can think about a way to handle this. But it should not be an urgent task.

Checklist:

  • A test for the new functionality was added.
  • All tests run without failure.
  • The new code complies with the TiGL style guide.
  • New classes have been added to the Python interface.
  • API changes were documented properly in tigl.h.
  • Changes were documented in tigl/ChangeLog.md

svengoldberg and others added 7 commits November 26, 2024 13:16
The CPACS creator currently allows adding sections in segments (or at their boundaries) when they contain guide curves. However this leads to crashes or undefined behaviour. As it might be hard to discuss reasonable behaviour or predict what the user wants in complex examples, we do not allow this right now.
(At least partly) fixes issue #626
 Fix Python wrapper returns SwigPyObject instead of CPACSWalls (Issue #1012)
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 89.93072% with 218 lines in your changes missing coverage. Please review.

Project coverage is 71.40%. Comparing base (b9c75f1) to head (2466e1d).
Report is 194 commits behind head on cpacs_creator_dev_merge.

Files with missing lines Patch % Lines
src/wing/CCPACSWing.cpp 86.88% 56 Missing ⚠️
src/wing/CTiglWingHelper.cpp 81.57% 28 Missing ⚠️
src/fuselage/CCPACSFuselage.cpp 94.42% 17 Missing ⚠️
src/geometry/CTiglSectionElement.cpp 95.15% 14 Missing ⚠️
src/wing/CCPACSWingSegments.cpp 76.27% 14 Missing ⚠️
src/creator/CTiglStandardizer.cpp 82.81% 11 Missing ⚠️
src/fuselage/CTiglFuselageHelper.cpp 78.26% 10 Missing ⚠️
src/fuselage/CTiglFuselageSectionElement.cpp 90.42% 9 Missing ⚠️
src/wing/CTiglWingSectionElement.cpp 91.42% 9 Missing ⚠️
src/wing/CCPACSWingProfiles.cpp 0.00% 7 Missing ⚠️
... and 14 more
Additional details and impacted files

Impacted file tree graph

@@                     Coverage Diff                     @@
##           cpacs_creator_dev_merge    #1039      +/-   ##
===========================================================
+ Coverage                    69.47%   71.40%   +1.92%     
===========================================================
  Files                          301      312      +11     
  Lines                        26889    28978    +2089     
===========================================================
+ Hits                         18681    20691    +2010     
- Misses                        8208     8287      +79     
Flag Coverage Δ
unittests 71.40% <89.93%> (+1.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/CCPACSPositioning.cpp 95.41% <100.00%> (+29.53%) ⬆️
src/CCPACSPositionings.cpp 96.70% <100.00%> (+1.46%) ⬆️
src/common/tiglcommonfunctions.h 100.00% <ø> (ø)
src/cpacs_other/CTiglUIDManager.h 95.83% <ø> (ø)
src/fuselage/CCPACSFuselage.h 100.00% <ø> (ø)
src/fuselage/CCPACSFuselageSectionElement.cpp 48.00% <100.00%> (+30.60%) ⬆️
src/fuselage/CCPACSFuselageSectionElement.h 100.00% <100.00%> (ø)
src/fuselage/CCPACSFuselageSections.cpp 93.54% <100.00%> (+31.04%) ⬆️
src/fuselage/CCPACSFuselageSegment.h 50.00% <ø> (ø)
src/fuselage/CTiglFuselageHelper.h 100.00% <100.00%> (ø)
... and 32 more

... and 3 files with indirect coverage changes

src/fuselage/CCPACSFuselage.cpp Outdated Show resolved Hide resolved
src/fuselage/CCPACSFuselage.cpp Outdated Show resolved Hide resolved
src/fuselage/CCPACSFuselage.cpp Outdated Show resolved Hide resolved
src/wing/CCPACSWing.cpp Outdated Show resolved Hide resolved
src/wing/CCPACSWing.cpp Outdated Show resolved Hide resolved
@svengoldberg svengoldberg merged commit b3a3d1a into cpacs_creator_dev_merge Nov 29, 2024
17 checks passed
@svengoldberg svengoldberg deleted the 626_cpacs_creator_add_section_gc branch November 29, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants