Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpiceQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
SpiceQL
Commits
384910e1
Unverified
Commit
384910e1
authored
8 months ago
by
Kelvin Rodriguez
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug where cks were using interval scope (#43)
parent
31e3f13c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SpiceQL/src/utils.cpp
+7
-1
7 additions, 1 deletion
SpiceQL/src/utils.cpp
with
7 additions
and
1 deletion
SpiceQL/src/utils.cpp
+
7
−
1
View file @
384910e1
...
@@ -1000,6 +1000,8 @@ namespace SpiceQL {
...
@@ -1000,6 +1000,8 @@ namespace SpiceQL {
pair
<
double
,
double
>
getKernelStartStopTimes
(
string
kpath
)
{
pair
<
double
,
double
>
getKernelStartStopTimes
(
string
kpath
)
{
SPDLOG_TRACE
(
"getKernelStartStopTimes({})"
,
kpath
);
double
start_time
=
0
;
double
start_time
=
0
;
double
stop_time
=
0
;
double
stop_time
=
0
;
...
@@ -1013,6 +1015,7 @@ namespace SpiceQL {
...
@@ -1013,6 +1015,7 @@ namespace SpiceQL {
for
(
int
j
=
0
;
j
<
niv
;
j
++
)
{
for
(
int
j
=
0
;
j
<
niv
;
j
++
)
{
//Get the endpoints of the jth interval.
//Get the endpoints of the jth interval.
SPDLOG_TRACE
(
"Collecting start stop times"
);
wnfetd_c
(
&
coverage
,
j
,
&
begin
,
&
end
);
wnfetd_c
(
&
coverage
,
j
,
&
begin
,
&
end
);
checkNaifErrors
();
checkNaifErrors
();
...
@@ -1076,6 +1079,7 @@ namespace SpiceQL {
...
@@ -1076,6 +1079,7 @@ namespace SpiceQL {
SPICEDOUBLE_CELL
(
cover
,
300000
);
SPICEDOUBLE_CELL
(
cover
,
300000
);
ssize_c
(
0
,
&
cover
);
ssize_c
(
0
,
&
cover
);
ssize_c
(
300000
,
&
cover
);
ssize_c
(
300000
,
&
cover
);
SPDLOG_TRACE
(
"Getting spk coverage"
);
spkcov_c
(
kpath
.
c_str
(),
body
,
&
cover
);
spkcov_c
(
kpath
.
c_str
(),
body
,
&
cover
);
getStartStopFromInterval
(
cover
);
getStartStopFromInterval
(
cover
);
}
}
...
@@ -1084,9 +1088,11 @@ namespace SpiceQL {
...
@@ -1084,9 +1088,11 @@ namespace SpiceQL {
SPICEDOUBLE_CELL
(
cover
,
300000
);
SPICEDOUBLE_CELL
(
cover
,
300000
);
ssize_c
(
0
,
&
cover
);
ssize_c
(
0
,
&
cover
);
ssize_c
(
300000
,
&
cover
);
ssize_c
(
300000
,
&
cover
);
SPDLOG_TRACE
(
"Getting ck coverage"
);
// 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
,
"SEGMENT"
,
0.0
,
"TDB"
,
&
cover
);
SPDLOG_TRACE
(
"collecting start stop times"
);
getStartStopFromInterval
(
cover
);
getStartStopFromInterval
(
cover
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment