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

Revamped seat placement in cabin #59

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Conversation

ngomezve
Copy link
Contributor

@ngomezve ngomezve commented Jun 5, 2024

This PR revisits the old functions to place seats, originally developed for output visualization only. The old functions could only handle symmetric seating or asymmetric seating of 3 or 5 passengers.

The new functions use a dictionary with the seating layout precomputed for up to 16 passengers per row. By selecting the maximum number of seats per row possible for a given fuselage radius, this can also be used to resize the fuselage diameter in smaller steps than before. The old distinction between symmetric and asymmetric layouts has been removed as the code is agnostic to it.

This PR also addresses issue #27 by introducing a floor separation parameter in the cases when the aircraft is a double decker. The two floors are assumed to be distributed symmetrically inside the cross section, which can be a double bubble.

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 97.56098% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.26%. Comparing base (78ba4b2) to head (5a0bb58).
Report is 16 commits behind head on main.

Current head 5a0bb58 differs from pull request most recent head 04ec52c

Please upload reports for the commit 04ec52c to get more accurate results.

Files Patch % Lines
src/IO/read_input.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   76.41%   78.26%   +1.85%     
==========================================
  Files          69       71       +2     
  Lines       13169    13418     +249     
==========================================
+ Hits        10063    10502     +439     
+ Misses       3106     2916     -190     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ngomezve ngomezve marked this pull request as ready for review June 14, 2024 17:20
more seating options + five abreast

changed 9 seat option to 3-3-3

fixed bug in seats per row calculation

updated fun descrs

considered case when Dfuse = Dmin

replaced equality with approx

updated seat placement options
@askprash askprash merged commit 297fedd into MIT-LAE:main Jun 24, 2024
3 checks passed
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