Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
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
gwinc
pygwinc
Commits
72b649b1
Commit
72b649b1
authored
5 years ago
by
Jameson Graef Rollins
Browse files
Options
Downloads
Patches
Plain Diff
opportunistically load h5py
since it's not needed for most operations
parent
9be8007f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gwinc/__init__.py
+0
-1
0 additions, 1 deletion
gwinc/__init__.py
gwinc/__main__.py
+4
-3
4 additions, 3 deletions
gwinc/__main__.py
gwinc/test/__main__.py
+1
-1
1 addition, 1 deletion
gwinc/test/__main__.py
with
5 additions
and
5 deletions
gwinc/__init__.py
+
0
−
1
View file @
72b649b1
...
...
@@ -7,7 +7,6 @@ import numpy as np
from
.ifo
import
IFOS
from
.struct
import
Struct
from
.plot
import
plot_noise
from
.io
import
load_hdf5
,
save_hdf5
def
_load_module
(
name_or_path
):
...
...
This diff is collapsed.
Click to expand it.
gwinc/__main__.py
+
4
−
3
View file @
72b649b1
...
...
@@ -10,7 +10,6 @@ logging.basicConfig(format='%(message)s',
level
=
os
.
getenv
(
'
LOG_LEVEL
'
,
logging
.
INFO
))
from
.
import
IFOS
,
load_budget
,
plot_noise
from
.
import
io
##################################################
...
...
@@ -89,8 +88,9 @@ def main():
# initial arg processing
if
os
.
path
.
splitext
(
os
.
path
.
basename
(
args
.
IFO
))[
1
]
in
[
'
.hdf5
'
,
'
.h5
'
]:
from
.io
import
load_hdf5
Budget
=
None
freq
,
traces
,
attrs
=
io
.
load_hdf5
(
args
.
IFO
)
freq
,
traces
,
attrs
=
load_hdf5
(
args
.
IFO
)
ifo
=
getattr
(
attrs
,
'
IFO
'
,
None
)
plot_style
=
attrs
...
...
@@ -201,10 +201,11 @@ def main():
# save noise traces to HDF5 file
if
args
.
save
and
os
.
path
.
splitext
(
args
.
save
)[
1
]
in
[
'
.hdf5
'
,
'
.h5
'
]:
from
.io
import
save_hdf5
logging
.
info
(
"
saving budget traces {}...
"
.
format
(
args
.
save
))
if
ifo
:
plot_style
[
'
IFO
'
]
=
ifo
.
to_yaml
()
io
.
save_hdf5
(
save_hdf5
(
path
=
args
.
save
,
freq
=
freq
,
traces
=
traces
,
...
...
This diff is collapsed.
Click to expand it.
gwinc/test/__main__.py
+
1
−
1
View file @
72b649b1
...
...
@@ -15,7 +15,7 @@ logging.basicConfig(format='%(message)s',
level
=
os
.
getenv
(
'
LOG_LEVEL
'
,
logging
.
INFO
))
from
..
import
IFOS
,
load_budget
from
..
import
load_hdf5
,
save_hdf5
from
..
io
import
load_hdf5
,
save_hdf5
try
:
import
inspiral_range
...
...
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