From c01e7e259887dc7fd871cb36f84a0973e201f7f8 Mon Sep 17 00:00:00 2001
From: kelvinrr <krodriguez@usgs.gov>
Date: Thu, 31 Oct 2024 18:29:58 +0000
Subject: [PATCH] test fixes

---
 SpiceQL/db/schema/spiceMissionSchmea.schema.json |  2 +-
 SpiceQL/include/spice_types.h                    |  2 +-
 SpiceQL/src/utils.cpp                            | 14 +++++++-------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/SpiceQL/db/schema/spiceMissionSchmea.schema.json b/SpiceQL/db/schema/spiceMissionSchmea.schema.json
index ce4d233..371b4f4 100644
--- a/SpiceQL/db/schema/spiceMissionSchmea.schema.json
+++ b/SpiceQL/db/schema/spiceMissionSchmea.schema.json
@@ -52,7 +52,7 @@
           "$ref": "#/definitions/quality_kernels"
         },
         "tspk": {
-          "$ref": "#/definitions/kernels"
+          "$ref": "#/definitions/quality_kernels"
         },
         "fk": {
           "$ref": "#/definitions/kernels"
diff --git a/SpiceQL/include/spice_types.h b/SpiceQL/include/spice_types.h
index 759add9..2391a1a 100644
--- a/SpiceQL/include/spice_types.h
+++ b/SpiceQL/include/spice_types.h
@@ -18,7 +18,7 @@ namespace SpiceQL {
   extern const std::vector<std::string> KERNEL_TYPES;
   extern const std::vector<std::string> KERNEL_QUALITIES;
   
-  void load(std::string path, bool force_refurnsh); 
+  void load(std::string path, bool force_refurnsh=true); 
   void unload(std::string path);
 
   /**
diff --git a/SpiceQL/src/utils.cpp b/SpiceQL/src/utils.cpp
index bdeda70..ee72a82 100644
--- a/SpiceQL/src/utils.cpp
+++ b/SpiceQL/src/utils.cpp
@@ -1040,14 +1040,14 @@ namespace SpiceQL {
     string currFile = fileType;
 
     //create a spice cell capable of containing all the objects in the kernel.
-    SPICEINT_CELL(currCell, 200000);
+    SPICEINT_CELL(currCell, 300000);
 
     //this resizing is done because otherwise a spice cell will append new data
     //to the last "currCell"
     ssize_c(0, &currCell);
-    ssize_c(200000, &currCell);
+    ssize_c(300000, &currCell);
 
-    SPICEDOUBLE_CELL(cover, 200000);
+    SPICEDOUBLE_CELL(cover, 300000);
 
     if (currFile == "SPK") {
       spkobj_c(kpath.c_str(), &currCell);
@@ -1073,17 +1073,17 @@ namespace SpiceQL {
       if (body < 0) {
         //find the correct coverage window
         if(currFile == "SPK") {
-          SPICEDOUBLE_CELL(cover, 200000);
+          SPICEDOUBLE_CELL(cover, 300000);
           ssize_c(0, &cover);
-          ssize_c(200000, &cover);
+          ssize_c(300000, &cover);
           spkcov_c(kpath.c_str(), body, &cover);
           getStartStopFromInterval(cover);
         }
         else if(currFile == "CK") {
           //  200,000 is the max coverage window size for a CK kernel
-          SPICEDOUBLE_CELL(cover, 200000);
+          SPICEDOUBLE_CELL(cover, 300000);
           ssize_c(0, &cover);
-          ssize_c(200000, &cover);
+          ssize_c(300000, &cover);
 
           // A SPICE SEGMENT is composed of SPICE INTERVALS
           ckcov_c(kpath.c_str(), body, SPICEFALSE, "INTERVAL", 0.0, "TDB", &cover);
-- 
GitLab