diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2022-04-04 12:22:29 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2022-04-04 12:22:29 +0300 |
| commit | 173babd032f2d3adb4f15d7c92cd4895137a0ee4 (patch) | |
| tree | 1736326b49f4595e0a10237b9506c733346124a3 /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | 6048285d5548af24e385095af1fe8ea8a945d289 (diff) | |
| download | Tango-173babd032f2d3adb4f15d7c92cd4895137a0ee4.tar.gz Tango-173babd032f2d3adb4f15d7c92cd4895137a0ee4.zip | |
Changes TI normalization only when no inter segment.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 094f34384..777f0b199 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -2962,7 +2962,10 @@ namespace Tango.Integration.Operation ticketToLog.Segments.Add(segmentToLog); } - NormalizeJobTicket(ticketToLog, processParameters); + if (!job.EnableInterSegment) + { + NormalizeJobTicket(ticketToLog, processParameters); + } LogManager.Log($"Job outline for '{job.Name}':\n{ticketToLog.ToJsonString()}"); @@ -3000,7 +3003,10 @@ namespace Tango.Integration.Operation ticket.Segments.AddRange(segs); } - NormalizeJobTicket(ticket, processParameters); + if (!job.EnableInterSegment) + { + NormalizeJobTicket(ticket, processParameters); + } request.JobTicket = ticket.Clone(); @@ -3293,6 +3299,8 @@ namespace Tango.Integration.Operation var maxNanoStop = ticket.Segments.SelectMany(x => x.BrushStops).OrderBy(x => x.GetTotalNanoliterPerCentimeter()).Last(); double maxNanoliter = maxNanoStop.GetTotalNanoliterPerCentimeter(); + LogManager.Log($"Normalizing brush stops TI quantities by {maxNanoliter} nanoliters..."); + foreach (var stop in ticket.Segments.SelectMany(x => x.BrushStops).Where(x => x != maxNanoStop)) { stop.NormalizeStop(maxNanoliter, processParameters.MinInkUptake, processParameters.DyeingSpeed); |
