Skip to content

Improve handling of different connection types#32

Merged
emilroz merged 1 commit intoglencoesoftware:mainfrom
DavidStirling:client-support
Jun 10, 2025
Merged

Improve handling of different connection types#32
emilroz merged 1 commit intoglencoesoftware:mainfrom
DavidStirling:client-support

Conversation

@DavidStirling
Copy link
Contributor

A few changes here aimed at making the experience of using the connector interface a bit smoother. Overall goal is to allow users to supply either an OMEROConnection, BlitzGateway or omero.client object when interacting with omero2pandas using an existing connection.

  • Moved get_connection to the omero2pandas.connect module to better isolate it. Removed the underscore prefix to make this a bit more public. The basic gist of this function is to create a new OMEROConnection object using the supplied params, but avoid creating a nested object if the user already supplied an existing OMEROConnection instance.
  • If the user supplies an existing BlitzGateway as the client we now handle this properly.
  • omero2pandas.remote.register_table now supports client/blitzgateway objects, not just OMEROConnections.
  • We no longer detachOnDestroy new sessions created just for the o2p connector.

@DavidStirling DavidStirling requested review from emilroz and mabruce June 3, 2025 13:30
@DavidStirling DavidStirling requested a review from mabruce June 9, 2025 13:04
Copy link
Contributor

@mabruce mabruce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to successfully read a table via omero-user-token, omero.client, BlitzGateway, omero2pandas.connect.get_connection(BlitzGateway), and omero2pandas.connect_to_omero.

@emilroz emilroz merged commit 8b584fd into glencoesoftware:main Jun 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants