navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.log_files
    • navigate.model
      • navigate.model.analysis
      • navigate.model.concurrency
      • navigate.model.data_sources
      • navigate.model.device_startup_functions
      • navigate.model.devices
      • navigate.model.features
        • navigate.model.features.adaptive_optics
        • navigate.model.features.auto_tile_scan
        • navigate.model.features.autofocus
        • navigate.model.features.common_features
        • navigate.model.features.feature_container
        • navigate.model.features.feature_related_functions
        • navigate.model.features.image_writer
        • navigate.model.features.remove_empty_tiles
        • navigate.model.features.restful_features
        • navigate.model.features.update_setting
        • navigate.model.features.volume_search
      • navigate.model.metadata_sources
      • navigate.model.microscope
      • navigate.model.model
      • navigate.model.plugins_model
      • navigate.model.waveforms
    • navigate.tools
    • navigate.view
navigate
  • Software API
  • navigate.model
  • navigate.model.features
  • navigate.model.features.feature_related_functions
  • navigate.model.features.feature_related_functions.convert_feature_list_to_str
  • View page source

navigate.model.features.feature_related_functions.convert_feature_list_to_str

navigate.model.features.feature_related_functions.convert_feature_list_to_str(feature_list: list) → str

Convert a feature list to its string representation.

This function takes a feature list, which is typically used for specifying configuration options, and converts it to its string representation. The resulting string can be useful for saving, displaying, or transmitting feature lists.

Parameters:

feature_listlist

A valid feature list.

Returns:

resultstr

The string representation of the feature list.

Notes:

  • The function recursively processes the input feature list, converting dictionaries, tuples, and lists to their corresponding string representations.

  • Within the resulting string, dictionaries are represented with keys “name” and “args” (if present), where “name” is the name of the feature function and “args” contains the arguments as a tuple.

  • Tuples and lists are represented using parentheses and square brackets, respectively.

  • This function is intended for converting feature lists to a format that can be easily saved to a file, transmitted over a network, or displayed to users.

Example:

Given the following feature list:

``` [

{“name”: func1, “args”: (arg1, arg2)}, {“name”: func2}, [

{“name”: func3, “args”: (arg3),}, {“name”: func4}

]

]

The function would return the string representation:

` "[{'name': 'func1', 'args': ('arg1', 'arg2')}, {'name': 'func2'}, [{'name': 'func3', 'args': ('arg3'),}, {'name': 'func4'}]]" `

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.