Remove Person Require People File,

PersonContainer and bug fix for GetRightPadded
This commit is contained in:
2022-09-18 23:43:37 -07:00
parent 9ec5da1e7a
commit 8b2cbf7e16
40 changed files with 1235 additions and 1111 deletions

View File

@ -54,11 +54,10 @@ public class Compare
bool reverse = false;
string outputExtension = ".jpg";
PredictorModel? predictorModel = null;
string peopleDateGroupDirectory = string.Empty;
string zResultsFullGroupDirectory = string.Empty;
string eResultsFullGroupDirectory = string.Empty;
Map.Models.Configuration? mapConfiguration = null;
Shared.Models.Person[] people = Array.Empty<Shared.Models.Person>();
Map.Models.MapLogic mapLogic = new(_AppSettings.MaxDegreeOfParallelism, propertyConfiguration, mapConfiguration, outputExtension, ticks, people, peopleDateGroupDirectory, zResultsFullGroupDirectory);
List<Shared.Models.PersonContainer> personContainers = new();
Map.Models.MapLogic mapLogic = new(_AppSettings.MaxDegreeOfParallelism, propertyConfiguration, mapConfiguration, outputExtension, ticks, personContainers, eResultsFullGroupDirectory);
A_Property propertyLogic = GetPropertyLogic(reverse, model, outputExtension, predictorModel, mapLogic);
foreach (string spelling in configuration.Spelling)
{
@ -163,7 +162,7 @@ public class Compare
if (appSettings.MaxDegreeOfParallelism < 2)
ticks = LogDelta(ticks, nameof(Property.Models.Stateless.Container.GetGroupCollection));
}
if (_IsEnvironment.Development && propertyConfiguration.PopulatePropertyId && !mapLogic.KeyValuePairs.Any())
if (_IsEnvironment.Development && propertyConfiguration.PopulatePropertyId)
throw new Exception("Copy keyValuePairs-####.json file");
(int j, int f, int t, Shared.Models.Container[] containers) = A_Property.Get(propertyConfiguration, propertyLogic);
if (!isSilent)
@ -755,10 +754,10 @@ public class Compare
int stay = 0;
string fileName;
string id = " - Id";
Shared.Models.Property? property;
string? directoryName;
ConsoleKey? consoleKey = null;
long ticks = DateTime.Now.Ticks;
Shared.Models.Property? property;
string filteredSourceDirectoryFile;
List<string> fileStayCollection = new();
List<string> fileMoveCollection = new();
@ -829,9 +828,9 @@ public class Compare
if (_Log is null)
throw new NullReferenceException(nameof(_Log));
int stay = 0;
Shared.Models.Property? property;
ConsoleKey? consoleKey = null;
long ticks = DateTime.Now.Ticks;
Shared.Models.Property? property;
string filteredSourceDirectoryFile;
List<string> fileMoveCollection = new();
List<KeyValuePair<int, int[]>> valueCollection = new();