From 1c9bea6d04dcfbfd1fbf0e1c437c110bc7dafa3e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 7 Nov 2019 17:39:00 +0200 Subject: Fixed issue with job completion on emulator. Added liquid volumes grid full step. Added full step to dispensing calculations. Fixed issue with gradient generation progress on MS. Worked on software items doc. --- .../Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 6963b90d4..ea1b0a0e3 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1272,6 +1272,13 @@ namespace Tango.Integration.Operation PreparingJobProgress?.Invoke(this, e); }); LogManager.Log($"Gradient generated."); + + PreparingJobProgress?.Invoke(this, new PreparingJobProgressEventArgs() + { + Job = job, + Total = job.Segments.Sum(x => x.Length), + Progress = job.Segments.Sum(x => x.Length), + }); } foreach (var stop in stops) @@ -1784,7 +1791,7 @@ namespace Tango.Integration.Operation if (JobUnitsMethod == JobUnitsMethods.Device) { - ticket.NumberOfUnits = (uint)job.NumberOfUnits; + ticket.NumberOfUnits = (uint)Math.Max(job.NumberOfUnits, 1); } ticket.Spool = new JobSpool(); -- cgit v1.3.1