Skip to content
Snippets Groups Projects
Commit c01e7e25 authored by kelvinrr's avatar kelvinrr
Browse files

test fixes

parent 057a2b80
Branches
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
"$ref": "#/definitions/quality_kernels" "$ref": "#/definitions/quality_kernels"
}, },
"tspk": { "tspk": {
"$ref": "#/definitions/kernels" "$ref": "#/definitions/quality_kernels"
}, },
"fk": { "fk": {
"$ref": "#/definitions/kernels" "$ref": "#/definitions/kernels"
......
...@@ -18,7 +18,7 @@ namespace SpiceQL { ...@@ -18,7 +18,7 @@ namespace SpiceQL {
extern const std::vector<std::string> KERNEL_TYPES; extern const std::vector<std::string> KERNEL_TYPES;
extern const std::vector<std::string> KERNEL_QUALITIES; 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); void unload(std::string path);
/** /**
......
...@@ -1040,14 +1040,14 @@ namespace SpiceQL { ...@@ -1040,14 +1040,14 @@ namespace SpiceQL {
string currFile = fileType; string currFile = fileType;
//create a spice cell capable of containing all the objects in the kernel. //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 //this resizing is done because otherwise a spice cell will append new data
//to the last "currCell" //to the last "currCell"
ssize_c(0, &currCell); ssize_c(0, &currCell);
ssize_c(200000, &currCell); ssize_c(300000, &currCell);
SPICEDOUBLE_CELL(cover, 200000); SPICEDOUBLE_CELL(cover, 300000);
if (currFile == "SPK") { if (currFile == "SPK") {
spkobj_c(kpath.c_str(), &currCell); spkobj_c(kpath.c_str(), &currCell);
...@@ -1073,17 +1073,17 @@ namespace SpiceQL { ...@@ -1073,17 +1073,17 @@ namespace SpiceQL {
if (body < 0) { if (body < 0) {
//find the correct coverage window //find the correct coverage window
if(currFile == "SPK") { if(currFile == "SPK") {
SPICEDOUBLE_CELL(cover, 200000); SPICEDOUBLE_CELL(cover, 300000);
ssize_c(0, &cover); ssize_c(0, &cover);
ssize_c(200000, &cover); ssize_c(300000, &cover);
spkcov_c(kpath.c_str(), body, &cover); spkcov_c(kpath.c_str(), body, &cover);
getStartStopFromInterval(cover); getStartStopFromInterval(cover);
} }
else if(currFile == "CK") { else if(currFile == "CK") {
// 200,000 is the max coverage window size for a CK kernel // 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(0, &cover);
ssize_c(200000, &cover); ssize_c(300000, &cover);
// A SPICE SEGMENT is composed of SPICE INTERVALS // A SPICE SEGMENT is composed of SPICE INTERVALS
ckcov_c(kpath.c_str(), body, SPICEFALSE, "INTERVAL", 0.0, "TDB", &cover); ckcov_c(kpath.c_str(), body, SPICEFALSE, "INTERVAL", 0.0, "TDB", &cover);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment