Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
gstlal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gstlal
Commits
4c8a21f2
Commit
4c8a21f2
authored
Mar 13, 2019
by
Chad Hanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gstlal_ilwdify: new (temporary) program for ligolw compatability
parent
271a758e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
gstlal-ugly/bin/Makefile.am
gstlal-ugly/bin/Makefile.am
+1
-0
gstlal-ugly/bin/gstlal_ilwdify
gstlal-ugly/bin/gstlal_ilwdify
+21
-0
No files found.
gstlal-ugly/bin/Makefile.am
View file @
4c8a21f2
...
...
@@ -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
\
...
...
gstlal-ugly/bin/gstlal_ilwdify
0 → 100755
View file @
4c8a21f2
#!/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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment