From 4c33ad3b28f44c37dff955bad4bd481480c77a82 Mon Sep 17 00:00:00 2001 From: snarayan21 Date: Mon, 6 Nov 2023 14:28:33 -0800 Subject: [PATCH] Fixing simulator command with simulation directories being included in package (#499) * trying fix * more fix * more fix * even more fix * even MOAR fix * not fix * nit fix * Update _version.py --- setup.py | 1 + simulation/core/__init__.py | 4 ++++ simulation/interfaces/__init__.py | 4 ++++ simulation/launcher.py | 4 +--- streaming/_version.py | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 simulation/core/__init__.py create mode 100644 simulation/interfaces/__init__.py diff --git a/setup.py b/setup.py index c44eb9ee2..0943e7906 100644 --- a/setup.py +++ b/setup.py @@ -101,6 +101,7 @@ 'PyYAML>=6.0,<7', 'pandas>=2.0.3,<3', 'wandb>=0.15.5,<1', + 'humanize>=4.7.0,<5', ] extra_deps['spark'] = [ diff --git a/simulation/core/__init__.py b/simulation/core/__init__.py new file mode 100644 index 000000000..f3ed8325a --- /dev/null +++ b/simulation/core/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2023 MosaicML Streaming authors +# SPDX-License-Identifier: Apache-2.0 + +"""Core classes and functions for streaming simulation.""" diff --git a/simulation/interfaces/__init__.py b/simulation/interfaces/__init__.py new file mode 100644 index 000000000..5c865acaf --- /dev/null +++ b/simulation/interfaces/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2023 MosaicML Streaming authors +# SPDX-License-Identifier: Apache-2.0 + +"""Interfaces for streaming simulation.""" diff --git a/simulation/launcher.py b/simulation/launcher.py index 2109a20f4..9da15bd83 100644 --- a/simulation/launcher.py +++ b/simulation/launcher.py @@ -10,7 +10,5 @@ def launch_simulation_ui(): """Launch the simulation UI.""" absolute_cwd_path = os.path.dirname(os.path.abspath(__file__)) - sim_file_relative_path = 'interfaces/sim_ui.py' - absolute_sim_path = os.path.join(absolute_cwd_path, sim_file_relative_path) - print(absolute_sim_path) + absolute_sim_path = os.path.join(absolute_cwd_path, 'interfaces', 'sim_ui.py') subprocess.run(['streamlit', 'run', absolute_sim_path]) diff --git a/streaming/_version.py b/streaming/_version.py index 50b578b8f..407dcdefe 100644 --- a/streaming/_version.py +++ b/streaming/_version.py @@ -3,4 +3,4 @@ """The Streaming Version.""" -__version__ = '0.7.0' +__version__ = '0.7.1'