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
dc85571b
Commit
dc85571b
authored
6 years ago
by
Chad Hanna
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_ilwdify: new (temporary) program for ligolw compatability
parent
d4f9b8cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gstlal-ugly/bin/Makefile.am
+1
-0
1 addition, 0 deletions
gstlal-ugly/bin/Makefile.am
gstlal-ugly/bin/gstlal_ilwdify
+21
-0
21 additions, 0 deletions
gstlal-ugly/bin/gstlal_ilwdify
with
22 additions
and
0 deletions
gstlal-ugly/bin/Makefile.am
+
1
−
0
View file @
dc85571b
...
...
@@ -10,6 +10,7 @@
dist_bin_SCRIPTS
=
\
gstlal_harmonic_mean_psd
\
gstlal_mock_data_server
\
gstlal_ilwdify
\
gstlal_inspiral_treebank
\
gstlal_inspiral_treebank_dag
\
gstlal_inspiral_bankviz
\
...
...
This diff is collapsed.
Click to expand it.
gstlal-ugly/bin/gstlal_ilwdify
0 → 100755
+
21
−
0
View file @
dc85571b
#!/usr/bin/env python
import
sys
from
ligo.lw
import
ligolw
from
ligo.lw
import
lsctables
from
ligo.lw
import
array
from
ligo.lw
import
param
from
ligo.lw
import
utils
as
ligolw_utils
from
gstlal
import
ilwdify
class
LIGOLWContentHandler
(
ligolw
.
LIGOLWContentHandler
):
pass
lsctables
.
use_in
(
LIGOLWContentHandler
)
param
.
use_in
(
LIGOLWContentHandler
)
array
.
use_in
(
LIGOLWContentHandler
)
fname
=
sys
.
argv
[
1
]
xmldoc
=
ligolw_utils
.
load_filename
(
fname
,
verbose
=
True
,
contenthandler
=
LIGOLWContentHandler
)
xmldoc
=
ilwdify
.
do_it_to
(
xmldoc
)
ligolw_utils
.
write_filename
(
xmldoc
,
fname
,
gz
=
fname
.
endswith
(
'
gz
'
),
verbose
=
True
)
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