-
Notifications
You must be signed in to change notification settings - Fork 382
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
Added Radioactivity #915
Added Radioactivity #915
Conversation
Codecov Report
@@ Coverage Diff @@
## master #915 +/- ##
========================================
- Coverage 82.7% 82.7% -0.0%
========================================
Files 291 293 +2
Lines 44038 44392 +354
========================================
+ Hits 36418 36705 +287
- Misses 7620 7687 +67
Continue to review full report at Codecov.
|
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.
Looks good, only a few minor comments!
"Abbreviations": [ "Bq" ] | ||
}, | ||
{ | ||
"Culture": "en-AU", |
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.
en-US
is the default culture, so you can safely remove en-AU
here since all the unit abbreviations are identical.
}, | ||
"FromUnitToBaseFunc": "x*3.7e10", | ||
"FromBaseToUnitFunc": "x/3.7e10", | ||
"Prefixes": [ "micro", "milli" ], |
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.
For consistency, please start with a big letter in prefixes.
// Override properties in base class here | ||
protected override double BecquerelsInOneBecquerel => 1; | ||
|
||
protected override double CuriesInOneBecquerel => 2.702702702e-11; |
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 issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Added Radioactivity (radioactive decay), along with three units: Bq - Becquerel (SI-derived) Ci - Curie (non-SI) Rd - Rutherford (non-SI) The scope of prefixes is fairly wide (Pico- to Exa- for Becquerel , Pico- to Tera- for Curie and Rutherford) in order to support most common scenarios, like measuring concentration of radioactive elements in a substance (e.g. 10 Bq per m3 of air is considered normal), rate of radioactive decay in electrical parts, Geiger counter scales, cosmic ray interactions or even global inventory of specific radioactive elements (per [Wikipedia](https://en.wikipedia.org/wiki/Becquerel#Examples)). It does not, however, support prefixes for things like activity produced by [nuclear explosions](https://books.google.pl/books?id=CJqcq2C792UC&pg=PA74&redir_esc=y#v=onepage&q=hiroshima&f=false) (values beyond 10^24 Bq), since this seems too niche even for C# devs. Similar PR was already created a quople years back (#915), but it was never actually merged. --------- Co-authored-by: Piotr Stenke <[email protected]>
The Si unit for radioactivity is the Becquerel (Bq) which is one disintegration per second. The non-SI unit is the Curie (Ci) where 1 Curie = 3.7e10 Becquerel