Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: scijava/scijava
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: scijava/scijava
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: scijava-ops-tutorial/improve-python-gateway
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 3, 2026

  1. Add improved SciJava Ops Python gateway

    This commit adds an improved Python gateway contained
    in the ops-gateway.py file. This gateway resolves a
    usability bug where nested namespaces like
    "features.haralick.asm" are unreachable as the string
    "haralick.asm" is appended as an attribute to the gateway instead
    of the "haralick" namespace being added as an intermediate namespace.
    Attempting to access "haralick" fails as that attribute does not exist.
    Additionally this commit adds the scijava-ops-flim library to the
    gateway.
    
    Intended use cases/scenarios
      - A user can simply run `python -i ops-gateway.py` to obtain an
        actiave `ops` environment.
      - A user can copy the ops-gateway.py module into their own project and
        create an ops gateway for their own internal project use.
    elevans committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    809f4da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2762f80 View commit details
    Browse the repository at this point in the history
  3. Use a underscore instead of hyphen in module name

    The hyphen is not pythonic.
    elevans committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    3a582c0 View commit details
    Browse the repository at this point in the history
  4. Prevent ops gateway initialization on import

    The SciJava Ops gateway should only be initialized if
    the ops_gateway.py file is run as a script. The
    module should be importable without creating the gateway.
    elevans committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    3f66532 View commit details
    Browse the repository at this point in the history
Loading