-
Notifications
You must be signed in to change notification settings - Fork 92
Rename shadow factor to illumination factor #1214
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
base: develop
Are you sure you want to change the base?
Conversation
| \caption{Definition and Explanation of Variables Used.} | ||
| \centering \fontsize{10}{10}\selectfont | ||
| \begin{tabular}{ | m{5cm}| m{2cm} | m{1.5cm} | m{6cm} |} % Column formatting, | ||
| \begin{tabular}{ | m{5cm}| m{2cm} | m{1.5cm} | m{6cm} |} % Column formatting, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you update the TeX you also need to compile the TeX document and commit the updated PDF.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just deleting a trailing whitespace in the comment of the line and should not affect the pdf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You updated the TeX file, but didn't upload a new PDF file? Please upload the current PDF file.
At the top of the TeX file you should also add an entry to the revision history to say what change you made.
b2de988 to
0946e61
Compare
14ea036 to
e8d7c3d
Compare
2ea00ff to
eee3a25
Compare
schaubh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. You didn't update the TeX PDF file of the SolarRadiation Pressure module.
| \caption{Definition and Explanation of Variables Used.} | ||
| \centering \fontsize{10}{10}\selectfont | ||
| \begin{tabular}{ | m{5cm}| m{2cm} | m{1.5cm} | m{6cm} |} % Column formatting, | ||
| \begin{tabular}{ | m{5cm}| m{2cm} | m{1.5cm} | m{6cm} |} % Column formatting, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You updated the TeX file, but didn't upload a new PDF file? Please upload the current PDF file.
At the top of the TeX file you should also add an entry to the revision history to say what change you made.
eee3a25 to
6a61cfa
Compare
6a61cfa to
57d74fc
Compare
Description
The variable
shadowFactoris used to determine if a satellite is in the shadow of a planet, and if yes, by how much. A value of 1 meant the satellite was outside the shadow, and a value of 0 meant it was fully in the shadow. However, the name implies the opposite behavior. Thus, we are changing this variable name to reflect better describe what it does.This PR adopts a clearer name for the eclipse payload field:
illuminationFactor. For backward compatibility,shadowFactorcontinues to work and is formally deprecated until Dec 31, 2026.C / C++
illuminationFactoris the new primary variable.shadowFactorremains as a deprecated alias.min_illumination_factoris the new primary variable.min_shadow_factorremains as a deprecated public variable, initialized to a sentinel value (-2.0).Reset(), the code checks ifmin_shadow_factor != -2.0. If true, it detects that the user has explicitly set the legacy variable. It then maps this value tomin_illumination_factorand logs aBSK_WARNING, ensuring valid configurations are preserved without overwriting new defaults.Python / SWIG
EclipseMsgPayload.illuminationFactoris exposed as a property that delegates to the same getter/setter asshadowFactor(no behavior or performance changes).EclipseMsgPayload.shadowFactorremains available but:Basilisk.utilities.deprecated.deprecationWarn) up to 2026-12-31.EclipseMsgRecorder(fromeclipseMsg.recorder()) now also supports:recorder.illuminationFactor→ alias forrecorder.shadowFactorso log access uses the new name without breaking existing code.
Modules / Files Touched
architecture/msgPayloadDefC/EclipseMsgPayload.hilluminationFactoralias and associated comments.architecture/messaging/msgAutoSource/msgInterfacePy.i.inilluminationFactorproperty onEclipseMsgPayload.shadowFactorwith deprecation behavior.EclipseMsgRecorderto handleilluminationFactorin logs.illuminationFactorwhile remaining compatible withshadowFactor.Verification
test_shadow_vs_illumination_alias_and_deprecation_behaviorvalidates:illuminationFactorandshadowFactorstay numerically in sync.shadowFactoremits a deprecation warning (checked withpytest.warns).shadowFactorto raise an error whileilluminationFactorcontinues to work.Documentation
illuminationFactoras the preferred name.shadowFactoras deprecated and scheduled for removal after Dec 31, 2026.Future work
shadowFactorfromEclipseMsgPayload.min_shadow_factorfromSpacecraftLocation.