Cleanup - charter will now display arbitrary count of graphs
This commit is contained in:
@@ -1 +1 @@
|
||||
C:\Users\poprhythm\AppData\Local\Temp\Temporary ASP.NET Files\vs\f80e29bb\faae20bf\App_Web_all.generated.cs.8f9494c4.u298vp5l.dll
|
||||
C:\Users\poprhythm\AppData\Local\Temp\Temporary ASP.NET Files\vs\f80e29bb\faae20bf\App_Web_all.generated.cs.8f9494c4.0nm7wrgc.dll
|
||||
@@ -78,7 +78,7 @@ namespace LeafWeb.WebCms.Controllers
|
||||
return new HttpStatusCodeResult(HttpStatusCode.NotFound, $"Unhandled exception thrown wihle parsing {leafOutputFile.Filename}.");
|
||||
}
|
||||
|
||||
if (curveData == null)
|
||||
if (curveData == null || curveData.ParamSets.Count == 0)
|
||||
return new HttpStatusCodeResult(HttpStatusCode.NotFound, $"No curve data was loaded from {leafOutputFile.Filename}.");
|
||||
|
||||
var charts = GetChartBitmaps(curveData).ToList();
|
||||
@@ -104,7 +104,7 @@ namespace LeafWeb.WebCms.Controllers
|
||||
LeafGasComparison[] leafGasComparisons;
|
||||
using (var parser = new LeafGasComparisonParser(fileContents))
|
||||
leafGasComparisons = parser.Parse(curveId);
|
||||
return CurveDataConverter.Convert(leafGasComparisons).First();
|
||||
return CurveDataConverter.Convert(leafGasComparisons).FirstOrDefault();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user