aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-02-20 02:28:15 +0200
committerRoy <Roy.mail.net@gmail.com>2023-02-20 02:28:15 +0200
commit795f3ab6ea36551281ec6442aa16b9547af96adc (patch)
tree4b1af0d700014054ff7d0ac01e381bbd25699e59 /Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
parentba39c2e2a012953f2f9633fa7df59b49cf3fd4c7 (diff)
downloadTango-795f3ab6ea36551281ec6442aa16b9547af96adc.tar.gz
Tango-795f3ab6ea36551281ec6442aa16b9547af96adc.zip
Incorporated machine type into machine creation and management + job runs.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs b/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
index 68565679a..6285bb7b0 100644
--- a/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
+++ b/Software/Visual_Studio/Tango.Integration/JobRuns/BasicJobRunsLogger.cs
@@ -158,11 +158,20 @@ namespace Tango.Integration.JobRuns
run.IsGradient = _job.Segments.Any(x => x.BrushStops.Count > 1);
run.GradientResolutionCm = MachineOperator.GradientGenerationConfiguration.ResolutionCM;
+ if (_defaultMachine != null)
+ {
+ run.MachineType = _defaultMachine.MachineType;
+ }
+ else if (_job.Machine != null)
+ {
+ run.MachineType = _job.Machine.MachineType;
+ }
+
var jobFile = e.Job.ToJobFileWhenLoaded();
- try
- {
- if (_job.Designation == JobDesignations.FineTuning)
+ try
+ {
+ if (_job.Designation == JobDesignations.FineTuning)
{
jobFile.Segments.First().BrushStops.First().ColorSpaceGuid = colorSpaces.First(x => x.Code == (int)ColorSpaces.LAB).Guid;
}