-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add radiation equivalent dose rate (#1468)
Add radiation equivalent [dose rate](https://en.wikipedia.org/wiki/Dose_rate). Port of #1464 to v6. - migrate .extra.cs files to UnitRelations.json --------- Co-authored-by: Alexander Voronische <[email protected]>
- Loading branch information
1 parent
53e5b84
commit 36b783c
Showing
23 changed files
with
2,593 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"Name": "RadiationEquivalentDoseRate", | ||
"BaseUnit": "SievertPerHour", | ||
"XmlDocSummary": "A dose rate is quantity of radiation absorbed or delivered per unit time.", | ||
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Dose_rate", | ||
"BaseDimensions": { | ||
"L": 2, | ||
"T": -3 | ||
}, | ||
"Units": [ | ||
{ | ||
"SingularName": "SievertPerHour", | ||
"PluralName": "SievertsPerHour", | ||
"FromUnitToBaseFunc": "{x}", | ||
"FromBaseToUnitFunc": "{x}", | ||
"Prefixes": [ "Nano", "Micro", "Milli" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "Sv/h" ] | ||
}, | ||
{ | ||
"Culture": "ru-RU", | ||
"Abbreviations": [ "Зв/ч" ] | ||
} | ||
] | ||
}, | ||
{ | ||
"SingularName": "RoentgenEquivalentManPerHour", | ||
"PluralName": "RoentgensEquivalentManPerHour", | ||
"FromUnitToBaseFunc": "{x} / 100", | ||
"FromBaseToUnitFunc": "{x} * 100", | ||
"Prefixes": [ "Milli" ], | ||
"Localization": [ | ||
{ | ||
"Culture": "en-US", | ||
"Abbreviations": [ "rem/h" ] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
217 changes: 217 additions & 0 deletions
217
UnitsNet.NanoFramework/GeneratedCode/Quantities/RadiationEquivalentDoseRate.g.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...anoFramework/GeneratedCode/RadiationEquivalentDoseRate/RadiationEquivalentDoseRate.nfproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Label="Globals"> | ||
<NanoFrameworkProjectSystemPath>$(MSBuildExtensionsPath)\nanoFramework\v1.0\</NanoFrameworkProjectSystemPath> | ||
</PropertyGroup> | ||
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectTypeGuids>{11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<ProjectGuid>{8eec9904-f4bb-c601-86ac-80fb153599f9}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<FileAlignment>512</FileAlignment> | ||
<RootNamespace>UnitsNet</RootNamespace> | ||
<AssemblyName>UnitsNet.RadiationEquivalentDoseRate</AssemblyName> | ||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion> | ||
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" /> | ||
<ItemGroup> | ||
<Compile Include="..\Quantities\RadiationEquivalentDoseRate.g.cs" /> | ||
<Compile Include="..\Units\RadiationEquivalentDoseRateUnit.g.cs" /> | ||
<Compile Include="..\Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="mscorlib, Version=1.15.6.0, Culture=neutral, PublicKeyToken=c07d481e9758c731"> | ||
<HintPath>..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll</HintPath> | ||
<Private>True</Private> | ||
<SpecificVersion>True</SpecificVersion> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" /> | ||
<ProjectExtensions> | ||
<ProjectCapabilities> | ||
<ProjectConfigurationsDeclaredAsItems /> | ||
</ProjectCapabilities> | ||
</ProjectExtensions> | ||
</Project> |
26 changes: 26 additions & 0 deletions
26
...ode/RadiationEquivalentDoseRate/UnitsNet.NanoFramework.RadiationEquivalentDoseRate.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>UnitsNet.nanoFramework.RadiationEquivalentDoseRate</id> | ||
<version>6.0.0-pre012</version> | ||
<title>Units.NET RadiationEquivalentDoseRate - nanoFramework</title> | ||
<authors>Andreas Gullberg Larsen,nanoframework</authors> | ||
<owners>UnitsNet</owners> | ||
<license type="expression">MIT-0</license> | ||
<projectUrl>https://github.com/angularsen/UnitsNet</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Adds RadiationEquivalentDoseRate units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.</description> | ||
<iconUrl>https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</iconUrl> | ||
<releaseNotes> | ||
</releaseNotes> | ||
<copyright>Copyright 2013 Andreas Gullberg Larsen ([email protected]).</copyright> | ||
<language>en-US</language> | ||
<tags>nanoframework radiationequivalentdoserate unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable</tags> | ||
<dependencies> | ||
<dependency id="nanoFramework.CoreLibrary" version="1.15.5" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\..\..\Artifacts\UnitsNet.NanoFramework\RadiationEquivalentDoseRate\UnitsNet.*" target="lib" /> | ||
</files> | ||
</package> |
4 changes: 4 additions & 0 deletions
4
UnitsNet.NanoFramework/GeneratedCode/RadiationEquivalentDoseRate/packages.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="nanoFramework.CoreLibrary" version="1.15.5" targetFramework="netnanoframework10" /> | ||
</packages> |
37 changes: 37 additions & 0 deletions
37
UnitsNet.NanoFramework/GeneratedCode/Units/RadiationEquivalentDoseRateUnit.g.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.