Skip to content

Which yabplot version is compatible with automate_create_meshes_and_SVGs.py? #9

Description

@RuiHe1999

Hi,

I am trying to use the semi-automated atlas pipeline in subcortex_visualization. The mesh-generation step appears to work correctly. The script successfully parses the lookup table and saves the meshes. However, the script fails during the SVG-generation step when calling plot_subcortical():

TypeError: plot_subcortical() got an unexpected keyword argument 'plot_regions_separately'

The relevant call in automate_create_meshes_and_SVGs.py is:

plot_subcortical(
    custom_atlas_path=mesh_path,
    views=views,
    cmap=cmap,
    figsize=figsize,
    bmesh_alpha=bmesh_alpha,
    style=style,
    zoom=zoom,
    plot_regions_separately=True,
    export_path=export_path
)

I am using yabplot==0.5.0. In this version, plot_subcortical() does not seem to have the argument plot_regions_separately. Also, yabplot.plotting does not seem to expose get_base_name, although the pipeline imports it with: from yabplot.plotting import get_base_name, plot_subcortical.

I also tried checking other available yabplot versions, but I could not find one where both get_base_name and plot_regions_separately are available.

Could you let me know which yabplot version was used when this pipeline was developed/tested? Alternatively, should the pipeline now be updated to work with the current yabplot API?

Thank you very much in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions