-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gsagh-366 #536
gsagh-366 #536
Conversation
Co-authored-by: Kristjan Nielsen <[email protected]>
internal Dictionary<string, GsaResultsValues> ACaseResultValues { get; private set; } | ||
= new Dictionary<string, GsaResultsValues>(); | ||
|
||
internal void AddACaseValue(string nodelist, GsaResultsValues values) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal void AddACaseValue(string nodelist, GsaResultsValues values) { | |
internal void AddAnalysisCaseValues(string nodelist, GsaResultsValues values) { |
@@ -7,6 +7,7 @@ | |||
using GsaAPI; | |||
using GsaGH.Helpers; | |||
using GsaGH.Helpers.GsaApi; | |||
using GsaGH.Parameters._5_Results; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment above
@@ -139,8 +140,8 @@ public class GsaResult { | |||
/// Append to this dictionary to chache results | |||
/// key = elementList | |||
/// </summary> | |||
internal Dictionary<string, GsaResultsValues> ACaseNodeDisplacementValues { get; set; } | |||
= new Dictionary<string, GsaResultsValues>(); | |||
internal GsaNodeDisplacement ACaseNodeDisplacementValues { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal GsaNodeDisplacement ACaseNodeDisplacementValues { get; set; } | |
internal GsaNodeDisplacement AnalysisCaseNodeDisplacements { get; set; } |
using System.Threading.Tasks; | ||
|
||
namespace GsaGH.Parameters._5_Results { | ||
public class GsaNodeDisplacement { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class GsaNodeDisplacement { | |
public class GsaNodeDisplacements { |
File name should be changed as well
if (Type == CaseType.AnalysisCase) { | ||
if (!ACaseNodeDisplacementValues.ContainsKey(nodelist)) { | ||
if (!ACaseNodeDisplacementValues.ACaseResultValues.ContainsKey(nodelist)) { | ||
if (!ACaseNodeResults.ContainsKey(nodelist)) { | ||
ACaseNodeResults.Add(nodelist, AnalysisCaseResult.NodeResults(nodelist)); | ||
} | ||
|
||
ACaseNodeDisplacementValues.Add(nodelist, | ||
ACaseNodeDisplacementValues.AddACaseValue(nodelist, | ||
ResultHelper.GetNodeResultValues(ACaseNodeResults[nodelist], lengthUnit)); | ||
} | ||
|
||
return new Tuple<List<GsaResultsValues>, List<int>>(new List<GsaResultsValues> { | ||
ACaseNodeDisplacementValues[nodelist], | ||
ACaseNodeDisplacementValues.ACaseResultValues[nodelist], | ||
}, Model.Model.Nodes(nodelist).Keys.ToList()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this to a method in the new class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a 1 step I suppose
internal Dictionary<string, GsaResultsValues> ACaseResultValues { get; private set; } | ||
= new Dictionary<string, GsaResultsValues>(); | ||
|
||
internal void AddAnalysisCaseValue(string nodelist, GsaResultsValues values) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal void AddAnalysisCaseValue(string nodelist, GsaResultsValues values) { | |
internal void AddAnalysisCaseValues(string nodelist, GsaResultsValues values) { |
Codecov Report
@@ Coverage Diff @@
## main #536 +/- ##
=====================================
Coverage 89.9% 89.9%
=====================================
Files 296 297 +1
Lines 28277 28281 +4
=====================================
+ Hits 25430 25434 +4
Misses 2847 2847
|
No description provided.