Blue Brain – eFEL 5.7.23 documentation 5.7.23 Blue Brain – eFEL 5.7.23 documentation – efel.units 5.7.23
Type to start searching
    • Installation
      • Quick start
      • How to set the settings
      • Parallel efeature extraction using multiprocessing/scoop
      • DEAP optimisation
      • Reading different file formats
      • Loading NWB files using Neo
      • Use of eFEL on the models downloaded from the Neocortical Microcircuit Portal
      • Extracting features from SONATA Network simulations
      • Extracellular Features Extraction for MEA Data
      • Voltage clamp trace and eFEL
    • eFeature descriptions
      • efel.api
      • efel.io
      • efel.pyfeatures.cppfeature_access
      • efel.pyfeatures.isi
      • efel.pyfeatures.extrafeats
      • efel.pyfeatures.multitrace
      • efel.pyfeatures.pyfeatures
      • efel.pyfeatures.validation
      • efel.units
      • efel.settings
    • Changelog
    • Developer’s Guide

    Source code for efel.units

    """Module to get units of efeatures."""
    import json
    import pkgutil
    
    
    _units_raw = pkgutil.get_data(__name__, "units.json")
    
    if _units_raw is None:
        raise ValueError("Failed to load units.json")
    
    _units = json.loads(_units_raw)
    
    
    
    [docs] def get_unit(feature_name: str) -> str: """Get the unit of a feature.""" return _units[feature_name]
    Blue Brain Project
    Address
    EPFL/Campus Biotech
    Chemin des Mines 9,
    CH-1202 Geneva
    Switzerland
    © Blue Brain Project/EPFL 2005-2026. All rights reserved.
    Follow the Blue Brain