Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
io
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
robofish
io
Commits
dc02a2cd
Commit
dc02a2cd
authored
Feb 18, 2021
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
Add world_size property
parent
fad78367
No related branches found
No related tags found
1 merge request
!8
Add properties
Pipeline
#35598
passed
Feb 18, 2021
Stage: package
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/robofish/io/file.py
+4
-0
4 additions, 0 deletions
src/robofish/io/file.py
with
4 additions
and
0 deletions
src/robofish/io/file.py
+
4
−
0
View file @
dc02a2cd
...
...
@@ -201,6 +201,10 @@ class File(h5py.File):
self
[
"
samplings
"
].
attrs
[
"
default
"
]
=
self
.
default_sampling
return
name
@property
def
world_size
(
self
):
return
self
.
attrs
[
"
world_size_cm
"
]
@property
def
frequency
(
self
):
# NOTE: Only works if default sampling availabe and specified with frequency_hz.
...
...
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