|
@@ -512,7 +512,6 @@ namespace X2D1NoRefTaskServer.Service
|
|
|
continue;//文件无法打开
|
|
|
hasFile = true;
|
|
|
var xdgbInfos = sameTimeFiles.GroupBy(m => m.XdIndex);
|
|
|
- Random r = new Random();
|
|
|
Parallel.ForEach(xdgbInfos, xdInfos =>
|
|
|
{
|
|
|
if (cts.IsCancellationRequested) return;
|
|
@@ -657,36 +656,6 @@ namespace X2D1NoRefTaskServer.Service
|
|
|
LogHelper.Error($"【任务{dto.ID}】信号{taskSig.FreqUp / 1e6:f3},{capTime:yyyyMMddHHmmss}时刻参估结果个数和检测结果个数不匹配");
|
|
|
return;
|
|
|
}
|
|
|
- if (checkFileType == 0)
|
|
|
- {
|
|
|
- data1.ForEach(t =>
|
|
|
- {
|
|
|
- t.Dt = r.Next(250000, 260000);
|
|
|
- t.Df = r.Next(500, 800);
|
|
|
- t.Snr = r.Next(25, 30);
|
|
|
- });
|
|
|
- data2.ForEach(t =>
|
|
|
- {
|
|
|
- t.Dt = r.Next(250000, 260000);
|
|
|
- t.Df = r.Next(1000, 1500);
|
|
|
- t.Snr = r.Next(18, 24);
|
|
|
- });
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- data1.ForEach(t =>
|
|
|
- {
|
|
|
- t.Dt = r.Next(250000, 260000);
|
|
|
- t.Df = r.Next(500, 800);
|
|
|
- t.Snr = r.Next(25, 30);
|
|
|
- });
|
|
|
- data2.ForEach(t =>
|
|
|
- {
|
|
|
- t.Dt = r.Next(-10000, 10000);
|
|
|
- t.Df = r.Next(1000, 1500);
|
|
|
- t.Snr = r.Next(18, 24);
|
|
|
- });
|
|
|
- }
|
|
|
for (int i = 0; i < data1.Count; i++)
|
|
|
{
|
|
|
try
|