Skip to content

Axon bindings broken due to missing Process.metadata_schema #329

Open
@ylep

Description

@ylep

This is related to #328 but I believe it deserves a separate issue: when a Capsul process does not have any associated metada_schemas attribute, the Axon bindings currently fail to load it:

Traceback (most recent call last):
  File "/casa/host/build/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 3643, in showProcess
    process = brainvisa.processes.getProcessInstance(process_id)
  File "/casa/host/build/python/brainvisa/processes.py", line 4751, in getProcessInstance
    result = result()
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 428, in __init__
    super().__init__()
  File "/casa/host/build/python/brainvisa/processes.py", line 1498, in __init__
    Parameterized.__init__(self, self.signature.shallowCopy())
  File "/casa/host/build/python/brainvisa/processes.py", line 808, in __init__
    self.initialization()
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 507, in initialization
    metadata.generate_paths()
  File "/casa/host/src/capsul/master/capsul/dataset.py", line 1167, in generate_paths
    proc_meta = executable.metadata_schemas.get(schema)
  File "/casa/host/build/python/soma/controller/controller.py", line 539, in __getattr__
    raise AttributeError(
AttributeError: <class 'capsul.pipeline.pipeline.CustomPipeline'> object has no attribute 'metadata_schemas'

(in this particular case a Json-defined pipeline is used, see neurospin/highres-cortex#15 for the full context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions