diff --git a/AUTHORS.rst b/AUTHORS.rst index 39a8017090e88e8a6b52119c3cbdc1f10e09ce41..f7ab2e089c2315142abbdbe52cfe17492218d341 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -9,7 +9,11 @@ Development * G Spigler <giacomo.spigler@gmail.com> -* A Egli <adrian.egli@sbb.ch> +* A Egli <adrian.egli@sbb.ch> + +* E Nygren <erik.nygren@sbb.ch> + +* Ch. Eichenberger <christian.markus.eichenberger@sbb.ch> * Mattias Ljungström diff --git a/docs/FAQ.rst b/docs/FAQ.rst index b7055321a710e3b3f47cbf5084f18eee083cf291..909fa2c1a6442168b41f89efa81de477301fb6ed 100644 --- a/docs/FAQ.rst +++ b/docs/FAQ.rst @@ -17,3 +17,19 @@ Frequently Asked Questions (FAQs) export LC_ALL=en_US.utf-8 export LANG=en_US.utf-8 + +- We use `importlib-resources`_ to read from local files. + Sample usages: + + .. code-block:: python + from importlib_resources import path + + with path(package, resource) as file_in: + new_grid = np.load(file_in) + + .. code-block:: python + from importlib_resources import read_binary + load_data = read_binary(package, resource) + self.set_full_state_msg(load_data) + + .. _importlib-resources: https://importlib-resources.readthedocs.io/en/latest/