Commit 057a2b80 authored by kelvinrr's avatar kelvinrr
Browse files

removed searches

parent ed591f29
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -31,6 +31,9 @@
    },
    "deps" : ["/base"]
  },
  "iau_moon" : {
    "deps" : ["/moon"]
  },
  "neptune" : { 
    "tspk" : {
      "noquality": {
+1 −0
Original line number Diff line number Diff line
@@ -331,6 +331,7 @@ namespace SpiceQL {
      baseKernels = Inventory::search_for_kernelset("base", {"fk"});
      missionKernels = Inventory::search_for_kernelset(mission, {"fk"});
    }
    
    KernelSet baseKset(baseKernels);
    KernelSet missionKset(missionKernels);

+1 −7
Original line number Diff line number Diff line
@@ -452,19 +452,13 @@ namespace SpiceQL {
    }

    json ephemKernels = {};
    json lskKernels = {};
    json pckKernels = {};

    if (searchKernels) {
      ephemKernels = Inventory::search_for_kernelsets({mission, "base"}, {"sclk", "ck", "pck", "fk", "tspk", "lsk", "pck", "tspk"}, ets.front(), ets.back(), ckQuality, "noquality");
      lskKernels = Inventory::search_for_kernelset("base", {"lsk"});
      pckKernels = Inventory::search_for_kernelset("base", {"pck"});
      ephemKernels = Inventory::search_for_kernelsets({mission, "base"}, {"sclk", "ck", "pck", "fk", "tspk", "lsk", "tspk"}, ets.front(), ets.back(), ckQuality, "noquality");
    }

    auto start = high_resolution_clock::now();
    KernelSet ephemSet(ephemKernels);
    KernelSet lskSet(lskKernels);
    KernelSet pckSet(pckKernels);
    auto stop = high_resolution_clock::now();
    auto duration = duration_cast<microseconds>(stop - start);
    SPDLOG_INFO("Time in microseconds to furnish kernel sets: {}", duration.count());