Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
12981b7b
Commit
12981b7b
authored
7 years ago
by
Kipp Cannon
Browse files
Options
Downloads
Patches
Plain Diff
gstlal-inspiral: update for sngl_inspiral event_id
- see f4c2bae0118a5afc3f0b4888dee0bfc284162f5a - refs #5390
parent
bcd832c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/snglinspiraltable.c
+1
-10
1 addition, 10 deletions
gstlal-inspiral/python/snglinspiraltable.c
with
1 addition
and
10 deletions
gstlal-inspiral/python/snglinspiraltable.c
+
1
−
10
View file @
12981b7b
...
...
@@ -52,8 +52,6 @@ typedef struct {
PyObject_HEAD
SnglInspiralTable
row
;
COMPLEX8TimeSeries
*
snr
;
/* FIXME: this should be incorporated into the LAL structure */
EventIDColumn
event_id
;
}
gstlal_GSTLALSnglInspiral
;
...
...
@@ -123,7 +121,7 @@ static struct PyMemberDef members[] = {
{
"spin2y"
,
T_FLOAT
,
offsetof
(
gstlal_GSTLALSnglInspiral
,
row
.
spin2y
),
0
,
"spin2y"
},
{
"spin2z"
,
T_FLOAT
,
offsetof
(
gstlal_GSTLALSnglInspiral
,
row
.
spin2z
),
0
,
"spin2z"
},
{
"_process_id"
,
T_LONG
,
offsetof
(
gstlal_GSTLALSnglInspiral
,
row
.
process_id
),
0
,
"process_id (long)"
},
{
"_event_id"
,
T_LONG
,
offsetof
(
gstlal_GSTLALSnglInspiral
,
event_id
.
id
),
0
,
"event_id (long)"
},
{
"_event_id"
,
T_LONG
,
offsetof
(
gstlal_GSTLALSnglInspiral
,
row
.
event_id
),
0
,
"event_id (long)"
},
{
NULL
,}
};
...
...
@@ -235,11 +233,6 @@ static PyObject *__new__(PyTypeObject *type, PyObject *args, PyObject *kwds)
if
(
!
new
)
return
NULL
;
/* link the event_id pointer in the sngl_inspiral row structure
* to the event_id structure */
new
->
row
.
event_id
=
&
new
->
event_id
;
new
->
event_id
.
id
=
0
;
/* done */
return
(
PyObject
*
)
new
;
}
...
...
@@ -282,8 +275,6 @@ static PyObject *from_buffer(PyObject *cls, PyObject *args)
return
NULL
;
}
((
gstlal_GSTLALSnglInspiral
*
)
item
)
->
row
=
gstlal_snglinspiral
->
parent
;
/* repoint event_id to event_id structure */
((
gstlal_GSTLALSnglInspiral
*
)
item
)
->
row
.
event_id
=
&
((
gstlal_GSTLALSnglInspiral
*
)
item
)
->
event_id
;
/* duplicate the SNR time series */
if
(
gstlal_snglinspiral
->
length
)
{
...
...
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