Skip to content

Commit

Permalink
ConfigRawParams: add adj. control to options col.
Browse files Browse the repository at this point in the history
Also, driveby fix to ParameterMetaDataRepository, floats mixed in here
were causing rounding errors leading to errant warnings about being
out of bounds.
  • Loading branch information
robertlong13 authored and meee1 committed Mar 20, 2023
1 parent 12927ab commit 8a84275
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 64 deletions.
8 changes: 4 additions & 4 deletions ExtLibs/Utilities/ParameterMetaDataRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ public static bool GetParameterRange(string nodeKey, ref double min, ref double
string[] rangeParts = rangeRaw.Split(new[] {' '});
if (rangeParts.Count() == 2)
{
float lowerRange;
if (float.TryParse(rangeParts[0], NumberStyles.Float, CultureInfo.InvariantCulture, out lowerRange))
double lowerRange;
if (double.TryParse(rangeParts[0], NumberStyles.Float, CultureInfo.InvariantCulture, out lowerRange))
{
float upperRange;
if (float.TryParse(rangeParts[1], NumberStyles.Float, CultureInfo.InvariantCulture, out upperRange))
double upperRange;
if (double.TryParse(rangeParts[1], NumberStyles.Float, CultureInfo.InvariantCulture, out upperRange))
{
min = lowerRange;
max = upperRange;
Expand Down
77 changes: 45 additions & 32 deletions GCSViews/ConfigurationView/ConfigRawParams.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a84275

Please sign in to comment.