data_basedbopen

dbopen

Open files directly in a database.

This module provides funtcionality to open files in a database directly. This is generally not recommended, as the content of databases is usually written in a specific format, which is automatically inferred by the database.

However, for development and testing purposes, it may be of use to explicitly open these files.

Classes

dbopen

Context manager to open files in databases

Functions

cache(function)

Cache the result of a function.

resolve_reldb_path(path, db_basedir)

Resolve a relative database path

create_reldb_path(path)

Create a relative database path

resolve_modular_db_path(path)

Resolve the path of a database.

create_modular_db_path(path)

Create a database path from a given path.

resolve_db_path(path, db_basedir)

Resolve modular or relative database paths

resolve_neup_reldb_paths(neup, db_basedir)

Convert all relative database paths in a Cell parameters file to absolute paths.

resolve_netp_reldb_paths(netp, db_basedir)

Convert all relative database paths in a Network parameters file to absolute paths.