intan.samples package
Utility functions for working with sample data and file discovery.
_find_file.py
Utility module for locating files within a specified directory tree. Primarily used to find example or test files bundled with the Intan data processing package. If no custom path is provided, the search defaults to the ‘samples’ directory adjacent to the module.
Functions: - findFile: Search for a specific filename within a directory tree and return its absolute path.
- findFile(filename, search_path=None)[source]
Search for a file in the given search path. If None, defaults to the intan/samples directory.
Parameters: - filename (str): The name of the file to search for. - search_path (str): Optional path to search in. Defaults to intan/samples directory.
Returns: - str or None: Full path to the file if found, otherwise None.