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

Reduce the number of 7s floating around the code. #94

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

johnmauff
Copy link
Collaborator

This PR attempts to reduce the number of occurrences of 7 that are floating around the code. In particular, in the wind version of Samurai, there are 7 variables (varDim) and also 7 pieces of meta-data associated with each observation (obMetaSize). For the thermo version of Samurai there will still be 7 pieces of meta-data associated with each observation (obMetaSize) but will only solve for 3 variables (varDim). Ideally, the number of variables could be set early on once the type of Samurai analysis being performed can be determined by checking configHash["analysis_type"] (VarDriver3D.cpp). This PR is associated with issue #87.

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 52.63158% with 18 lines in your changes missing coverage. Please review.

Please upload report for BASE (thermo_asap@e342376). Learn more about missing BASE report.
Report is 2 commits behind head on thermo_asap.

Files Patch % Lines
src/VarDriver3D.cpp 23.80% 16 Missing ⚠️
src/CostFunction3D.cpp 93.75% 1 Missing ⚠️
src/CostFunctionRTZ.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             thermo_asap      #94   +/-   ##
==============================================
  Coverage               ?   32.84%           
==============================================
  Files                  ?       51           
  Lines                  ?    17289           
  Branches               ?        0           
==============================================
  Hits                   ?     5679           
  Misses                 ?    11610           
  Partials               ?        0           

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

Copy link
Collaborator

@cenamiller cenamiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @johnmauff , from what I see in the code changes the magic 7s that needed to be replaced were all obMetaSize

@cenamiller cenamiller merged commit b46153a into thermo_asap Aug 14, 2024
4 checks passed
@sjsprecious sjsprecious deleted the magic7s branch August 15, 2024 16:53
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.

2 participants