Skip to content

← file_system package

GetIdentifierFromPath

Extract subject/session identifiers from the source filename.

Search through the filename, stored in the chunk.props[source_url], with a provided format string and extract the {subject} and/or {session} strings for the file. Resulting {subject} and {session} are stored in chunk props. Version 0.9.0

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

format

The format string used to search the filename. Your search string should contain {subject} and/or {session}. e.g. /parent/directory/subject_{subject}/{session}/ See Python Format String Syntax for more info.

  • verbose name: Format/search String
  • default value:
  • port type: StringPort
  • value type: str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)