src/pybel/grounding.py
def _process_edge_side(side_data, skip_namespaces: Optional[Collection[str]] = None) -> bool:
    """Process an edge JSON object, in place."""
    if side_data is None:
        return True

    modifier = side_data.get(MODIFIER)
    effect = side_data.get(EFFECT)

    if modifier == ACTIVITY and effect is not None:
        _process_concept(concept=effect, skip_namespaces=skip_namespaces)
    elif modifier == TRANSLOCATION and effect is not None:
        _process_concept(concept=effect[FROM_LOC], skip_namespaces=skip_namespaces)
        _process_concept(concept=effect[TO_LOC], skip_namespaces=skip_namespaces)

    location = side_data.get(LOCATION)
    if location is not None:
        _process_concept(concept=location, skip_namespaces=skip_namespaces)
Process an edge JSON object, in place.
Process an edge JSON object, in place.
Process an edge JSON object in place .
def _process_edge_side(side_data, skip_namespaces: Optional[Collection[str]] = None) -> bool:
    if side_data is None:
        return True
    modifier = side_data.get(MODIFIER)
    effect = side_data.get(EFFECT)
    if modifier == ACTIVITY and effect is not None:
        _process_concept(concept=effect, skip_namespaces=skip_namespaces)
    elif modifier == TRANSLOCATION and effect is not None:
        _process_concept(concept=effect[FROM_LOC], skip_namespaces=skip_namespaces)
        _process_concept(concept=effect[TO_LOC], skip_namespaces=skip_namespaces)
    location = side_data.get(LOCATION)
    if location is not None:
        _process_concept(concept=location, skip_namespaces=skip_namespaces)
def _process_edge_side ( side_data , skip_namespaces : Optional [ Collection [ str ] ] = None ) -> bool : if side_data is None : return True modifier = side_data . get ( MODIFIER ) effect = side_data . get ( EFFECT ) if modifier == ACTIVITY and effect is not None : _process_concept ( concept = effect , skip_namespaces = skip_namespaces ) elif modifier == TRANSLOCATION and effect is not None : _process_concept ( concept = effect [ FROM_LOC ] , skip_namespaces = skip_namespaces ) _process_concept ( concept = effect [ TO_LOC ] , skip_namespaces = skip_namespaces ) location = side_data . get ( LOCATION ) if location is not None : _process_concept ( concept = location , skip_namespaces = skip_namespaces )
Process an edge JSON object, in place.
Process an edge JSON object in place .
"""Process an edge JSON object, in place."""
side_data
skip_namespaces
Optional[Collection[str]]