Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Swain Lab
aliby
alibylite
Commits
8330b603
Commit
8330b603
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
fix(signal): timeinterval not being used
parent
368a7d0c
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
src/agora/io/signal.py
+3
-2
3 additions, 2 deletions
src/agora/io/signal.py
with
3 additions
and
2 deletions
src/agora/io/signal.py
+
3
−
2
View file @
8330b603
import
logging
import
typing
as
t
from
copy
import
copy
from
functools
import
cached_property
,
lru_cache
...
...
@@ -85,10 +86,10 @@ class Signal(BridgeH5):
"""
Find the interval between time points (minutes).
"""
tinterval_location
=
"
time_settings/timeinterval
"
with
h5py
.
File
(
self
.
filename
,
"
r
"
)
as
f
:
if
tinterval_location
in
f
:
if
tinterval_location
in
f
.
attrs
:
return
f
.
attrs
[
tinterval_location
][
0
]
else
:
print
(
logging
.
getlogger
(
"
aliby
"
).
warn
(
f
"
{
str
(
self
.
filename
).
split
(
'
/
'
)[
-
1
]
}
: using default time interval of 5 minutes
"
)
return
5
...
...
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