Skip to content

Commit 3a5afbc

Browse files
author
Doug Schmidt
authored
Merge pull request #37 from DougSchmidt-AI/feature/Issue-36-Support2019.2Uncertainty
Issue-36 - Added support for quantitative uncertainty
2 parents 10991b0 + 0defa87 commit 3a5afbc

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ An AQTS field data plugin supporting FlowTracker2 measurement files, for AQTS 20
1010
- Download the latest release of the plugin [here](../../releases/latest)
1111
- Install it using the [FieldVisitPluginTool](https://github.com/AquaticInformatics/aquarius-field-data-framework/tree/master/src/FieldDataPluginTool)
1212

13+
## Plugin Compatibility Matrix
14+
15+
It is recommended that you use the most recent version of the plugin which matches your AQTS server version.
16+
17+
| AQTS Version | Latest compatible plugin Version |
18+
| --- | --- |
19+
| AQTS 2019.2 | [v19.2.1](https://github.com/AquaticInformatics/flowtracker2-field-data-plugin/releases/download/v19.2.1/FlowTracker2Plugin.plugin) - Adds discharge uncertainty |
20+
| 2017.4 - 2019.1 | [v17.4.44](https://github.com/AquaticInformatics/flowtracker2-field-data-plugin/releases/download/v17.4.44/FlowTracker2Plugin.plugin) |
21+
1322
## Requirements for building the plugin from source
1423

1524
- Requires Visual Studio 2017 (Community Edition is fine)

src/Flowtracker2Plugin/DataFileParser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ private DischargeActivity CreateDischargeActivity(FieldVisitInfo visit)
217217
var dischargeActivity = dischargeActivityFactory.CreateDischargeActivity(
218218
new DateTimeInterval(visit.StartDate, visit.EndDate), UnitConverter.ConvertDischarge(DataFile.Calculations.Discharge));
219219
dischargeActivity.Comments = DataFile.Properties.Comment;
220+
dischargeActivity.ActiveUncertaintyType = UncertaintyType.Quantitative;
221+
dischargeActivity.QuantitativeUncertainty = DataFile.Calculations.UncertaintyIso.Overall * 100;
220222

221223
return dischargeActivity;
222224
}

src/Flowtracker2Plugin/FlowTracker2Plugin.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>FlowTracker2Plugin</RootNamespace>
1111
<AssemblyName>FlowTracker2Plugin</AssemblyName>
12-
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
@@ -32,8 +32,8 @@
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="FieldDataPluginFramework, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
36-
<HintPath>..\packages\Aquarius.FieldDataFramework.17.4.3\lib\net47\FieldDataPluginFramework.dll</HintPath>
35+
<Reference Include="FieldDataPluginFramework, Version=2.3.0.0, Culture=neutral, processorArchitecture=AMD64">
36+
<HintPath>..\packages\Aquarius.FieldDataFramework.19.2.2\lib\net472\FieldDataPluginFramework.dll</HintPath>
3737
</Reference>
3838
<Reference Include="ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
3939
<SpecificVersion>False</SpecificVersion>
@@ -69,7 +69,7 @@
6969
</ItemGroup>
7070
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7171
<PropertyGroup>
72-
<PostBuildEvent>$(SolutionDir)packages\Aquarius.FieldDataFramework.17.4.3\tools\PluginPackager.exe $(TargetPath) /OutputPath=$(ProjectDir)deploy\$(Configuration)\$(TargetName).plugin
73-
$(SolutionDir)packages\Aquarius.FieldDataFramework.17.4.3\tools\PluginTester.exe /Plugin=$(TargetPath) /Data=$(SolutionDir)..\data\DemoData.ft</PostBuildEvent>
72+
<PostBuildEvent>$(SolutionDir)packages\Aquarius.FieldDataFramework.19.2.2\tools\PluginPackager.exe $(TargetPath) /OutputPath=$(ProjectDir)deploy\$(Configuration)\$(TargetName).plugin
73+
$(SolutionDir)packages\Aquarius.FieldDataFramework.19.2.2\tools\PluginTester.exe /Plugin=$(TargetPath) /Data=$(SolutionDir)..\data\DemoData.ft</PostBuildEvent>
7474
</PropertyGroup>
7575
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Aquarius.FieldDataFramework" version="17.4.3" targetFramework="net47" />
3+
<package id="Aquarius.FieldDataFramework" version="19.2.2" targetFramework="net472" />
44
</packages>

0 commit comments

Comments
 (0)