Enable ruff RUF001 rule (#11378)

* Enable ruff RUF001 rule

* Fix

* Fix
This commit is contained in:
Maxim Smolskiy
2024-04-22 22:45:24 +03:00
committed by GitHub
parent dbfa21813f
commit 79dc7c97ac
4 changed files with 7 additions and 8 deletions

View File

@@ -4,14 +4,14 @@ from scipy.constants import G, c, pi
"""
These two functions will return the radii of impact for a target object
of mass M and radius R as well as it's effective cross sectional area σ(sigma).
That is to say any projectile with velocity v passing within σ, will impact the
of mass M and radius R as well as it's effective cross sectional area sigma.
That is to say any projectile with velocity v passing within sigma, will impact the
target object with mass M. The derivation of which is given at the bottom
of this file.
The derivation shows that a projectile does not need to aim directly at the target
body in order to hit it, as R_capture>R_target. Astronomers refer to the effective
cross section for capture as σ=π*R_capture**2.
cross section for capture as sigma=π*R_capture**2.
This algorithm does not account for an N-body problem.

View File

@@ -31,7 +31,7 @@ This effect is used in polarimetry to measure the optical activity of a sample.
Real polarizers are also not perfect blockers of the polarization orthogonal to
their polarization axis; the ratio of the transmission of the unwanted component
to the wanted component is called the extinction ratio, and varies from around
1:500 for Polaroid to about 1:106 for GlanTaylor prism polarizers.
1:500 for Polaroid to about 1:106 for Glan-Taylor prism polarizers.
Reference : "https://en.wikipedia.org/wiki/Polarizer#Malus's_law_and_other_properties"
"""