Skip to content

Conversation

garrettlanderson
Copy link
Collaborator

I saw this error a few days ago when running tests with pixi on the consolidate plotting branch.

image

Chad suggested that I change the pytest command in pyproject.toml. This seemed to fix the problems on my windows machine.

image

However, I will post some other results from a computer I have running Ubuntu 24.04 that did not yield equivalent results.

@garrettlanderson
Copy link
Collaborator Author

This the output from the pytest on my Ubuntu machine. First off, copy html from the terminal is awesome. This is the first time I have done that. It looks to be about 3 different problems that may not be critical. The plot_utils seems to be the main problem. This ran fine on Window. speed_limit_simple_corr_demo.py ran fine in the pixi environement when I ran it interactively, debug mode, and from the command line. So I am not sure what is going here. I may ask copilot shortly....

Pixi task (py_test in default): pixi run -e dev pytest -v
================================================================================= test session starts ==================================================================================
platform linux -- Python 3.11.11, pytest-8.3.5, pluggy-1.5.0 -- /home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11
cachedir: .pytest_cache
rootdir: /home/garrett/Documents/altrios
configfile: pyproject.toml
collected 21 items                                                                                                                                                                     

python/altrios/demos/test_demos.py::test_demo[speed_limit_simple_corr_demo.py] FAILED                                                                                            [  4%]
python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo.py] FAILED                                                                                              [  9%]
python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo_with_derating.py] FAILED                                                                                [ 14%]
python/altrios/demos/test_demos.py::test_demo[bel_demo.py] PASSED                                                                                                                [ 19%]
python/altrios/demos/test_demos.py::test_demo[set_speed_train_sim_demo.py] FAILED                                                                                                [ 23%]
python/altrios/demos/test_demos.py::test_demo[hel_demo.py] PASSED                                                                                                                [ 28%]
python/altrios/demos/test_demos.py::test_demo[sim_manager_demo.py] FAILED                                                                                                        [ 33%]
python/altrios/demos/test_demos.py::test_demo[rollout_demo.py] FAILED                                                                                                            [ 38%]
python/altrios/demos/test_demos.py::test_demo[set_speed_simple_corr_demo.py] FAILED                                                                                              [ 42%]
python/altrios/demos/test_demos.py::test_demo[conv_demo.py] PASSED                                                                                                               [ 47%]
python/altrios/tests/test_consist_sim.py::TestConsistSimulation::test_walk_no_save PASSED                                                                                        [ 52%]
python/altrios/tests/test_consist_sim.py::TestConsistSimulation::test_walk_w_save PASSED                                                                                         [ 57%]
python/altrios/tests/test_locomotive_simulation.py::TestLocomotiveSimulation::test_walk_no_save PASSED                                                                           [ 61%]
python/altrios/tests/test_locomotive_simulation.py::TestLocomotiveSimulation::test_walk_w_save PASSED                                                                            [ 66%]
python/altrios/tests/test_metric_calculator.py::TestMetricCalculator::test_dummy_sim PASSED                                                                                      [ 71%]
python/altrios/tests/test_multi_obj_cal_and_val.py::TestLocomotive::test_pymoo_mod_err_build PASSED                                                                              [ 76%]
python/altrios/tests/test_powertrain_fuel_conv.py::TestFuelConverter::test_load_from_yaml_absolute_path PASSED                                                                   [ 80%]
python/altrios/tests/test_powertrain_res.py::TestRES::test_load_from_excel PASSED                                                                                                [ 85%]
python/altrios/tests/test_powertrain_res.py::TestRES::test_load_from_yaml_absolute_path PASSED                                                                                   [ 90%]
python/altrios/tests/test_serde.py::test_pydict PASSED                                                                                                                           [ 95%]
python/altrios/tests/test_utilities.py::TestUtilities::test_copy_demo_files PASSED                                                                                               [100%]

======================================================================================= FAILURES =======================================================================================
______________________________________________________________________ test_demo[speed_limit_simple_corr_demo.py] ______________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_simple_corr_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_simple_corr_demo.py", line 9, in <module>
E             from altrios.demos import plot_util
E         ImportError: cannot import name 'plot_util' from 'altrios.demos' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_simple_corr_demo.py')], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_simple_corr_demo.py", line 9, in <module>\n    from altrios.demos import plot_util\nImportError: cannot import name \'plot_util\' from \'altrios.demos\' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
_______________________________________________________________________ test_demo[speed_limit_train_sim_demo.py] _______________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo.py", line 10, in <module>
E             from altrios.demos import plot_util
E         ImportError: cannot import name 'plot_util' from 'altrios.demos' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo.py')], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo.py", line 10, in <module>\n    from altrios.demos import plot_util\nImportError: cannot import name \'plot_util\' from \'altrios.demos\' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
________________________________________________________________ test_demo[speed_limit_train_sim_demo_with_derating.py] ________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo_with_derating.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo_with_derating.py", line 9, in <module>
E             from altrios.demos import plot_util
E         ImportError: cannot import name 'plot_util' from 'altrios.demos' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo_with_derating.py')], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/speed_limit_train_sim_demo_with_derating.py", line 9, in <module>\n    from altrios.demos import plot_util\nImportError: cannot import name \'plot_util\' from \'altrios.demos\' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
________________________________________________________________________ test_demo[set_speed_train_sim_demo.py] ________________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/set_speed_train_sim_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/set_speed_train_sim_demo.py", line 6, in <module>
E             from altrios.demos import plot_util
E         ImportError: cannot import name 'plot_util' from 'altrios.demos' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/set_speed_train_sim_demo.py')], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/set_speed_train_sim_demo.py", line 6, in <module>\n    from altrios.demos import plot_util\nImportError: cannot import name \'plot_util\' from \'altrios.demos\' (/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/demos/__init__.py)\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
____________________________________________________________________________ test_demo[sim_manager_demo.py] ____________________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py", line 81, in <module>
E             timed_paths=[alt.TimedLinkPath.from_pydict(tp) for tp in timed_paths],
E                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           File "/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py", line 81, in <listcomp>
E             timed_paths=[alt.TimedLinkPath.from_pydict(tp) for tp in timed_paths],
E                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E           File "/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/__init__.py", line 107, in from_pydict
E             msgpack.packb(pydict), skip_init=skip_init)
E             ^^^^^^^^^^^^^^^^^^^^^
E           File "/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/msgpack/__init__.py", line 36, in packb
E             return Packer(**kwargs).pack(o)
E                    ^^^^^^^^^^^^^^^^^^^^^^^^
E           File "msgpack/_packer.pyx", line 279, in msgpack._cmsgpack.Packer.pack
E           File "msgpack/_packer.pyx", line 276, in msgpack._cmsgpack.Packer.pack
E           File "msgpack/_packer.pyx", line 270, in msgpack._cmsgpack.Packer._pack
E           File "msgpack/_packer.pyx", line 232, in msgpack._cmsgpack.Packer._pack_inner
E           File "msgpack/_packer.pyx", line 270, in msgpack._cmsgpack.Packer._pack
E           File "msgpack/_packer.pyx", line 257, in msgpack._cmsgpack.Packer._pack_inner
E         TypeError: can not serialize 'altrios_pyo3.LinkIdxTime' object
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py')], returncode=1, stdout='Elapsed time to import rail vehicles, locations, and network: 0.0849 s\nEntering `sim_manager` module.\n2025-07-16 19:03:47\nElapsed time to plan train consist for year 2022: 2.7 s\nElapsed time to run dispatch for year 2022: 0.203 s\nElapsed time to run `sim_manager.main()`: 2.92 s\n', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py", line 81, in <module>\n    timed_paths=[alt.TimedLinkPath.from_pydict(tp) for tp in timed_paths],\n                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/garrett/Documents/altrios/python/altrios/demos/sim_manager_demo.py", line 81, in <listcomp>\n    timed_paths=[alt.TimedLinkPath.from_pydict(tp) for tp in timed_paths],\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/altrios/__init__.py", line 107, in from_pydict\n    msgpack.packb(pydict), skip_init=skip_init)\n    ^^^^^^^^^^^^^^^^^^^^^\n  File "/home/garrett/Documents/altrios/.pixi/envs/dev/lib/python3.11/site-packages/msgpack/__init__.py", line 36, in packb\n    return Packer(**kwargs).pack(o)\n           ^^^^^^^^^^^^^^^^^^^^^^^^\n  File "msgpack/_packer.pyx", line 279, in msgpack._cmsgpack.Packer.pack\n  File "msgpack/_packer.pyx", line 276, in msgpack._cmsgpack.Packer.pack\n  File "msgpack/_packer.pyx", line 270, in msgpack._cmsgpack.Packer._pack\n  File "msgpack/_packer.pyx", line 232, in msgpack._cmsgpack.Packer._pack_inner\n  File "msgpack/_packer.pyx", line 270, in msgpack._cmsgpack.Packer._pack\n  File "msgpack/_packer.pyx", line 257, in msgpack._cmsgpack.Packer._pack_inner\nTypeError: can not serialize \'altrios_pyo3.LinkIdxTime\' object\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
______________________________________________________________________________ test_demo[rollout_demo.py] ______________________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/rollout_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/rollout_demo.py", line 78, in <module>
E             np.array(sim_dict["history"]["time_seconds"]) / 3_600,
E                      ~~~~~~~~^^^^^^^^^^^
E         KeyError: 'history'
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/rollout_demo.py')], returncode=1, stdout='Entering `sim_manager` module.\n2025-07-16 19:03:50\nElapsed time to plan train consist for year 2022: 2.66 s\nElapsed time to run dispatch for year 2022: 0.203 s\nElapsed time to run `sim_manager.main() for year 2022`: 2.88 s\nElapsed time to run `run_speed_limit_train_sims()` for year 2022: 0.599 s\nNo SpeedLimitTrainSim history was saved, so meet pass events cannot be counted.\nUnits of detailed not supported for freight movement calculation.\nElapsed time to run `metric_calculator.main()` and serialize metrics: 0.202 s\n', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/rollout_demo.py", line 78, in <module>\n    np.array(sim_dict["history"]["time_seconds"]) / 3_600,\n             ~~~~~~~~^^^^^^^^^^^\nKeyError: \'history\'\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
_______________________________________________________________________ test_demo[set_speed_simple_corr_demo.py] _______________________________________________________________________

demo_path = PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/set_speed_simple_corr_demo.py')

    @pytest.mark.parametrize(
        "demo_path", demo_paths(), ids=[dp.name for dp in demo_paths()]
    )
    def test_demo(demo_path: Path):
        os.environ["SHOW_PLOTS"] = "false"
        os.environ["PYTEST"] = "true"
        rslt = subprocess.run(
            [sys.executable, demo_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True,
        )
>       assert rslt.returncode == 0, rslt.stderr
E       AssertionError: Traceback (most recent call last):
E           File "/home/garrett/Documents/altrios/python/altrios/demos/set_speed_simple_corr_demo.py", line 42, in <module>
E             loco_vec = [bel] + [alt.Locomotive.default()] * 7 + [hel.copy()]
E                                                                  ^^^^^^^^
E         AttributeError: 'altrios_pyo3.Locomotive' object has no attribute 'copy'
E         
E       assert 1 == 0
E        +  where 1 = CompletedProcess(args=['/home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11', PosixPath('/home/garrett/Documents/altrios/python/altrios/demos/set_speed_simple_corr_demo.py')], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/home/garrett/Documents/altrios/python/altrios/demos/set_speed_simple_corr_demo.py", line 42, in <module>\n    loco_vec = [bel] + [alt.Locomotive.default()] * 7 + [hel.copy()]\n                                                         ^^^^^^^^\nAttributeError: \'altrios_pyo3.Locomotive\' object has no attribute \'copy\'\n').returncode

python/altrios/demos/test_demos.py:26: AssertionError
=============================================================================== short test summary info ================================================================================
FAILED python/altrios/demos/test_demos.py::test_demo[speed_limit_simple_corr_demo.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo_with_derating.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[set_speed_train_sim_demo.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[sim_manager_demo.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[rollout_demo.py] - AssertionError: Traceback (most recent call last):
FAILED python/altrios/demos/test_demos.py::test_demo[set_speed_simple_corr_demo.py] - AssertionError: Traceback (most recent call last):
============================================================================ 7 failed, 14 passed in 18.92s =============================================================================

@garrettlanderson
Copy link
Collaborator Author

I'm becoming less convinced that AI will not take over coding....

looks like the current working directory differs slightly between all the different ways of running it.

@calbaker Is this something that we should worry about fixing or not worry about it since it passes on other platforms. Add it to the list of known bugs?

image

…it works on windows too.... Not totally convinece its not an environment problem.
@garrettlanderson
Copy link
Collaborator Author

the plot_util problem was fixed by remove from altrios.demos. The import now just reads "import plot_utils". This seems to work. Now I am fighting copy() not being a method but clone() is a method. I need to sort out git authentication between different user accounts so that I can commit my changes on my ubuntu machine and test them on my windows machine.

…fy that it works on windows too.... Not totally convinece its not an environment problem."

This reverts commit 3a0df0b.
@garrettlanderson
Copy link
Collaborator Author

I think I have tracked it down, but I don't understand enough to know how to fix it. It comes down to which environement is being used. It seems that on Ubuntu that pixi is using the dev environment that pixi builds. I can reproduce the same problems running interactively when I use dev rather than the regular pixi environment. Let me know if you have any ideas. Otherwise, I'll dive down the rabbit hole.

@garrettlanderson
Copy link
Collaborator Author

I got the tests to all pass on my linux machine. I found that the dev environment was not getting reinstalled when I did pixi run for some reason. I had to run the command "pixi reinstall --all". This reinstalled the default and dev environments. Here are the results.

Pixi task (py_test in default): pixi run -e dev pytest -v
================================================================================= test session starts ==================================================================================
platform linux -- Python 3.11.11, pytest-8.3.5, pluggy-1.5.0 -- /home/garrett/Documents/altrios/.pixi/envs/dev/bin/python3.11
cachedir: .pytest_cache
rootdir: /home/garrett/Documents/altrios
configfile: pyproject.toml
collected 21 items                                                                                                                                                                     

python/altrios/demos/test_demos.py::test_demo[speed_limit_simple_corr_demo.py] PASSED                                                                                            [  4%]
python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo.py] PASSED                                                                                              [  9%]
python/altrios/demos/test_demos.py::test_demo[speed_limit_train_sim_demo_with_derating.py] PASSED                                                                                [ 14%]
python/altrios/demos/test_demos.py::test_demo[bel_demo.py] PASSED                                                                                                                [ 19%]
python/altrios/demos/test_demos.py::test_demo[set_speed_train_sim_demo.py] PASSED                                                                                                [ 23%]
python/altrios/demos/test_demos.py::test_demo[hel_demo.py] PASSED                                                                                                                [ 28%]
python/altrios/demos/test_demos.py::test_demo[sim_manager_demo.py] PASSED                                                                                                        [ 33%]
python/altrios/demos/test_demos.py::test_demo[rollout_demo.py] PASSED                                                                                                            [ 38%]
python/altrios/demos/test_demos.py::test_demo[set_speed_simple_corr_demo.py] PASSED                                                                                              [ 42%]
python/altrios/demos/test_demos.py::test_demo[conv_demo.py] PASSED                                                                                                               [ 47%]
python/altrios/tests/test_consist_sim.py::TestConsistSimulation::test_walk_no_save PASSED                                                                                        [ 52%]
python/altrios/tests/test_consist_sim.py::TestConsistSimulation::test_walk_w_save PASSED                                                                                         [ 57%]
python/altrios/tests/test_locomotive_simulation.py::TestLocomotiveSimulation::test_walk_no_save PASSED                                                                           [ 61%]
python/altrios/tests/test_locomotive_simulation.py::TestLocomotiveSimulation::test_walk_w_save PASSED                                                                            [ 66%]
python/altrios/tests/test_metric_calculator.py::TestMetricCalculator::test_dummy_sim PASSED                                                                                      [ 71%]
python/altrios/tests/test_multi_obj_cal_and_val.py::TestLocomotive::test_pymoo_mod_err_build PASSED                                                                              [ 76%]
python/altrios/tests/test_powertrain_fuel_conv.py::TestFuelConverter::test_load_from_yaml_absolute_path PASSED                                                                   [ 80%]
python/altrios/tests/test_powertrain_res.py::TestRES::test_load_from_excel PASSED                                                                                                [ 85%]
python/altrios/tests/test_powertrain_res.py::TestRES::test_load_from_yaml_absolute_path PASSED                                                                                   [ 90%]
python/altrios/tests/test_serde.py::test_pydict PASSED                                                                                                                           [ 95%]
python/altrios/tests/test_utilities.py::TestUtilities::test_copy_demo_files PASSED                                                                                               [100%]

================================================================================= 21 passed in 50.91s ==================================================================================
(PixiEnv) garrett@garrett-desktop:~/Documents/altrios$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants