Skip to content

Commit f894a10

Browse files
author
Oren (electricessence)
committed
Fixes to stablize build.
1 parent 5c08775 commit f894a10

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

Extensions.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,13 @@
44
*/
55

66
using System;
7-
using System.Collections;
87
using System.Collections.Concurrent;
98
using System.Collections.Generic;
109
using System.Diagnostics;
11-
using System.Dynamic;
12-
using System.IO;
1310
using System.Linq;
14-
using System.Linq.Expressions;
15-
using System.Reflection;
16-
using System.Text;
17-
using System.Threading;
1811
using System.Threading.Tasks;
19-
using System.Threading.Tasks.Dataflow;
2012
using Open.Threading;
21-
using Open.Text;
22-
13+
using Open.Numeric.Precision;
2314

2415
namespace Open.Collections.Numeric
2516
{
@@ -176,7 +167,7 @@ public static IEnumerable<KeyValuePair<TKey, double>> DeltaCurve<TKey>(this IEnu
176167
foreach (var kv in values.OrderBy(k => k.Key))
177168
{
178169
current = current.SumAccurate(kv.Value);
179-
yield return KeyValuePair.New(kv.Key, current);
170+
yield return KeyValuePair.Create(kv.Key, current);
180171
}
181172

182173
}
@@ -248,7 +239,7 @@ public static IEnumerable<KeyValuePair<TKey, double>> ResetZeros<TKey>(this IEnu
248239
return values.Select(v =>
249240
{
250241
var value = v.Value;
251-
return KeyValuePair.New(v.Key, value.IsNearZero(tolerance) ? 0d : value);
242+
return KeyValuePair.Create(v.Key, value.IsNearZero(tolerance) ? 0d : value);
252243
});
253244
}
254245

@@ -263,7 +254,7 @@ public static ParallelQuery<KeyValuePair<TKey, double>> ResetZeros<TKey>(this Pa
263254
return values.Select(v =>
264255
{
265256
var value = v.Value;
266-
return KeyValuePair.New(v.Key, value.IsNearZero(tolerance) ? 0d : value);
257+
return KeyValuePair.Create(v.Key, value.IsNearZero(tolerance) ? 0d : value);
267258
});
268259
}
269260

Open.Collections.Numeric.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ Part of the "Open" set of libraries.</Description>
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Open.Threading" Version="1.0.0" />
21+
<PackageReference Include="Open.Collections" Version="1.1.1" />
22+
<PackageReference Include="Open.Numeric" Version="1.0.0" />
23+
<PackageReference Include="Open.Text" Version="1.0.0" />
24+
<PackageReference Include="Open.Threading" Version="1.0.1" />
2225
</ItemGroup>
2326

2427
</Project>

0 commit comments

Comments
 (0)