Skip to content

Commit

Permalink
Fixing simulator command with simulation directories being included i…
Browse files Browse the repository at this point in the history
…n package (#499)

* trying fix

* more fix

* more fix

* even more fix

* even MOAR fix

* not fix

* nit fix

* Update _version.py
  • Loading branch information
snarayan21 authored Nov 6, 2023
1 parent 4e8c944 commit 4c33ad3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = [
Expand Down
4 changes: 4 additions & 0 deletions simulation/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 MosaicML Streaming authors
# SPDX-License-Identifier: Apache-2.0

"""Core classes and functions for streaming simulation."""
4 changes: 4 additions & 0 deletions simulation/interfaces/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 MosaicML Streaming authors
# SPDX-License-Identifier: Apache-2.0

"""Interfaces for streaming simulation."""
4 changes: 1 addition & 3 deletions simulation/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
2 changes: 1 addition & 1 deletion streaming/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

"""The Streaming Version."""

__version__ = '0.7.0'
__version__ = '0.7.1'

0 comments on commit 4c33ad3

Please sign in to comment.