Skip to content

Commit

Permalink
modifies doctest ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
r-akemii committed Sep 13, 2024
1 parent a2cd9ea commit fc8bbb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/source/modeling_with_aequilibrae/aequilibrae_matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.],
Expand Down Expand Up @@ -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.],
Expand Down Expand Up @@ -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.],
Expand Down
5 changes: 2 additions & 3 deletions docs/source/modeling_with_aequilibrae/project_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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``
Expand Down

0 comments on commit fc8bbb7

Please sign in to comment.