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
0cb25380
Commit
0cb25380
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
feat(image): add UnsafeImage
parent
c0c9d14d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aliby/io/image.py
+22
-0
22 additions, 0 deletions
aliby/io/image.py
with
22 additions
and
0 deletions
aliby/io/image.py
+
22
−
0
View file @
0cb25380
...
@@ -267,3 +267,25 @@ class Image(Argo):
...
@@ -267,3 +267,25 @@ class Image(Argo):
meta
[
"
channels
"
]
=
self
.
image_wrap
.
getChannelLabels
()
meta
[
"
channels
"
]
=
self
.
image_wrap
.
getChannelLabels
()
meta
[
"
name
"
]
=
self
.
image_wrap
.
getName
()
meta
[
"
name
"
]
=
self
.
image_wrap
.
getName
()
return
meta
return
meta
class
UnsafeImage
(
Image
):
"""
Loads images from OMERO and gives access to the data and metadata.
This does not require context management to work, making it possible
to leave hanging sessions and freeze an Omero server.
"""
def
__init__
(
self
,
image_id
,
**
server_info
):
"""
Establishes the connection to the OMERO server via the Argo
base class.
Parameters
----------
image_id: integer
server_info: dictionary
Specifies the host, username, and password as strings
"""
super
().
__init__
(
image_id
,
**
server_info
)
self
.
create_gate
()
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