Skip to content

SciJava Ops: create external configuration mechanism #97

Closed
scijava/incubator
#67

Description

@hinerm

Javadoc discovery via therapi is great for dependency-free op registration, but still requires modification to "source" code. Ultimately for adoption we need a mechanism for registering ops without any changes to source or documentation.

It seems sensible to support a configuration file syntax, e.g. in yml.

This would likely be the mechanism for including libraries in other languages.

If a library has a mechanism for introspecting its available algorithms, we could (on a per-library basis) create an automated mechanism that generates a companion ops configuration yml, and it would also provide a path for manual configuration when introspection is not possible.

Activity

  1. added this to the 1.0.0 milestone on Oct 13, 2022
  2. gselzer commented on Nov 3, 2022

    @gselzer
    Member

    Sure. What items are needed? Shall we prototype something like this?

    info:
      source: Java
      package: ImageJ Ops2
      version: 0-SNAPSHOT
    
    ops:
      - op:
          name: filter.gauss
          priority: 0.0
          source: net.imagej.ops2.filter.gauss.GaussRAI
          parameters:
            - input: in1
              description: The first input
            - input: in2
              description: The second input
            - container: out
              description: Preallocated output container
              optional: True
    
    

    I would think that the goal should be to create something that gives us all of the needed info for matching without loading in the code until needed

  3. linked a pull request that will close this issueOp Discovery Through YAML declaration #67on Jan 6, 2023
  4. added a commit that references this issue on May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions