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
  • 4 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 21, 2024

  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 Oct 21, 2024
    Configuration menu
    Copy the full SHA
    af7eb5b View commit details
    Browse the repository at this point in the history
  2. Remove old ops Python gateway

    elevans committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    cec7d39 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 Oct 21, 2024
    Configuration menu
    Copy the full SHA
    bbedba2 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 Oct 21, 2024
    Configuration menu
    Copy the full SHA
    759d523 View commit details
    Browse the repository at this point in the history
Loading