From fc8bbb7e103ef2883edad849dae3e1f50f815f19 Mon Sep 17 00:00:00 2001 From: Renata Imai Date: Fri, 13 Sep 2024 15:45:07 -0300 Subject: [PATCH] modifies doctest ellipsis --- .../source/modeling_with_aequilibrae/aequilibrae_matrix.rst | 6 +++--- .../source/modeling_with_aequilibrae/project_components.rst | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/source/modeling_with_aequilibrae/aequilibrae_matrix.rst b/docs/source/modeling_with_aequilibrae/aequilibrae_matrix.rst index 3b57665de..703e89a1d 100644 --- a/docs/source/modeling_with_aequilibrae/aequilibrae_matrix.rst +++ b/docs/source/modeling_with_aequilibrae/aequilibrae_matrix.rst @@ -58,7 +58,7 @@ The following methods allow you to check the data in you AequilibraE matrix. array([1, 2, 3, 4, 5]) # To return an array with the selected matrix data - >>> mat.get_matrix("only_ones") # doctest: +NORMALIZE_WHITESPACE + >>> mat.get_matrix("only_ones") # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE array([[1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], @@ -111,7 +111,7 @@ AequilibraE matrices in disk can be reused and loaded once again. >>> mat = AequilibraeMatrix() >>> mat.load(join(folder, 'my_new_aem_file.aem')) - >>> mat.get_matrix("only_ones") # doctest: +NORMALIZE_WHITESPACE + >>> mat.get_matrix("only_ones") # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE memmap([[1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], @@ -158,7 +158,7 @@ Creating an AequilibraE matrix from an OMX file is pretty straightforward. >>> omx_mat = AequilibraeMatrix() >>> omx_mat.create_from_omx(file_path, omx_path) - >>> mat.get_matrix("only_ones") # doctest: +NORMALIZE_WHITESPACE + >>> mat.get_matrix("only_ones") # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE memmap([[1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], [1., 1., 1., 1., 1.], diff --git a/docs/source/modeling_with_aequilibrae/project_components.rst b/docs/source/modeling_with_aequilibrae/project_components.rst index 2abe01ed6..882af834c 100644 --- a/docs/source/modeling_with_aequilibrae/project_components.rst +++ b/docs/source/modeling_with_aequilibrae/project_components.rst @@ -241,7 +241,7 @@ Each item in the 'link_types' table is a ``LinkType`` object. >>> link_types.save() # To check all `LinkTypes` in the project as a dictionary whose keys are the `link_type_id`'s - >>> link_types.all_types() # doctest: +ELLIPSIS + >>> link_types.all_types() # doctest: +SKIP {'z': ...} # There are two ways to get a LinkType from the 'link_types' table @@ -289,8 +289,7 @@ Each item in 'modes' table is a ``Mode`` object. >>> modes.delete("k") # To check all `Modes` in the project as a dictionary whose keys are the `mode_id`'s - >>> modes.all_modes() - {'b': ..., 'c': ..., 't': ..., 'w': ...} + >>> modes.all_modes() # doctest: +SKIP # There are two ways to get a Mode from the 'modes' table # using the ``mode_id``