Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge latest master into v0.3 #426

Merged
merged 28 commits into from
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d948997
update docker hub init (#367)
Jinyu-W Jul 9, 2021
c2de22d
update package version
Jul 9, 2021
2ba357b
update README for package description
Jinyu-W Jul 9, 2021
c64c8ff
update image links for pypi package description
Jinyu-W Jul 9, 2021
b02b80a
update image links for pypi package description
Jinyu-W Jul 9, 2021
f8f17e0
change the input topology schema for CIM real data mode (#372)
Jinyu-W Jul 13, 2021
a61968b
update package version
Jinyu-W Jul 13, 2021
69e2127
adjust interface to reflect actual signature (#374)
jreynolds01 Jul 15, 2021
6758062
update dataclasses requirement to setup
Jul 22, 2021
665a9aa
fix: fixing spelling grammarr
slowy07 Jul 27, 2021
c73d73b
fix: fix typo spelling code commented and data_model.rst
slowy07 Jul 29, 2021
91cb603
Fix Geo vis IP address & SQL logic bugs. (#383)
lihuoran Aug 2, 2021
790ed55
Fix the "Wrong future stop tick predictions" bug (#386)
lihuoran Aug 18, 2021
5975eca
Fix reset random seed bug (#387)
lihuoran Aug 19, 2021
32c3dca
update package version
Jinyu-W Aug 19, 2021
2beb2d5
Add _init_vessel_plans in business_engine.reset (#388)
lihuoran Aug 26, 2021
18eb076
update package version
Aug 26, 2021
a852e10
change the default solver used in Citibike OnlineLP example, from GLP…
Jinyu-W Sep 6, 2021
d02f4fe
Refine `event_buffer/` module (#389)
lihuoran Sep 7, 2021
eb0527f
Core & Business Engine code refinement (#392)
lihuoran Sep 9, 2021
39aaa92
add higher python version (#398)
Jinyu-W Sep 18, 2021
56fcfa2
CIM scenario refinement (#400)
lihuoran Sep 22, 2021
39eedfa
Add `clear()` function to class `SimRandom` (#401)
lihuoran Sep 26, 2021
246f2f5
update package version
Jinyu-W Sep 27, 2021
89ad2bf
Minor
lihuoran Nov 19, 2021
a6338ff
Remove docs/source/examples/multi_agent_dqn_cim.rst
lihuoran Nov 19, 2021
53f7514
Update .gitignore
lihuoran Nov 19, 2021
615c8f5
Update .gitignore
lihuoran Dec 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/---bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Steps to reproduce the behavior:
- How you installed MARO (`pip`, `source`):
- OS (`Linux`, `Windows`, `macOS`):
- Python version (`3.6`, `3.7`):
- Docker image (e.g., arthursjiang/maro:cpu[5f36ed]):
- Docker image (e.g., maro2020/maro:latest):
- CPU/GPU:
- Any other relevant information:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: |
pip install -r ./maro/requirements.build.txt
cython ./maro/backends/backend.pyx ./maro/backends/np_backend.pyx ./maro/backends/raw_backend.pyx ./maro/backends/frame.pyx --cplus -3 -E NODES_MEMORY_LAYOUT=ONE_BLOCK -X embedsignature=True
cat ./maro/__misc__.py | grep __version__ | egrep -o [0-9].[0-9].[0-9,a-z]+ | { read version; docker build -f ./docker_files/cpu.play.df . -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:cpu -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:latest -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:cpu-$version; }
cat ./maro/__misc__.py | grep __version__ | egrep -o [0-9].[0-9].[0-9,a-z]+ | { read version; docker build -f ./docker_files/cpu.playground.df . -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:cpu -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:latest -t ${{ secrets.DOCKER_HUB_USERNAME }}/maro:cpu-$version; }

- name: Login docker hub
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04, windows-latest, macos-latest]
python-version: [3.6, 3.7]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Install torch on Windows
if: runner.os == 'Windows'
run: |
pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install torch===1.7.1 torchvision===0.8.2 -f https://download.pytorch.org/whl/torch_stable.html

- name: Install test dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ data/
maro_venv/
pyvenv.cfg
htmlcov/
*supply_chain_*/
examples/supply_chain/docker-compose.yml
.coverage
.coveragerc
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
[![Platform](https://raw.githubusercontent.com/microsoft/maro/master/docs/source/images/badges/platform.svg)](https://pypi.org/project/pymaro/)
[![Python Versions](https://img.shields.io/pypi/pyversions/pymaro.svg?logo=python&logoColor=white)](https://pypi.org/project/pymaro/#files)
[![Code Size](https://img.shields.io/github/languages/code-size/microsoft/maro)](https://github.com/microsoft/maro)
[![Docker Size](https://img.shields.io/docker/image-size/arthursjiang/maro)](https://hub.docker.com/repository/docker/arthursjiang/maro/tags?page=1)
[![Docker Size](https://img.shields.io/docker/image-size/maro2020/maro)](https://hub.docker.com/repository/docker/maro2020/maro/tags?page=1)
[![Issues](https://img.shields.io/github/issues/microsoft/maro)](https://github.com/microsoft/maro/issues)
[![Pull Requests](https://img.shields.io/github/issues-pr/microsoft/maro)](https://github.com/microsoft/maro/pulls)
[![Dependencies](https://img.shields.io/librariesio/github/microsoft/maro)](https://libraries.io/pypi/pymaro)
[![test](https://github.com/microsoft/maro/workflows/test/badge.svg)](https://github.com/microsoft/maro/actions?query=workflow%3Atest)
[![build](https://github.com/microsoft/maro/workflows/build/badge.svg)](https://github.com/microsoft/maro/actions?query=workflow%3Abuild)
[![docker](https://github.com/microsoft/maro/workflows/docker/badge.svg)](https://hub.docker.com/repository/docker/arthursjiang/maro)
[![docker](https://github.com/microsoft/maro/workflows/docker/badge.svg)](https://hub.docker.com/repository/docker/maro2020/maro)
[![docs](https://readthedocs.org/projects/maro/badge/?version=latest)](https://maro.readthedocs.io/)
[![PypI Versions](https://img.shields.io/pypi/v/pymaro)](https://pypi.org/project/pymaro/#files)
[![Wheel](https://img.shields.io/pypi/wheel/pymaro)](https://pypi.org/project/pymaro/#files)
Expand All @@ -23,8 +23,8 @@
[![Lint](https://github.com/microsoft/maro/workflows/lint/badge.svg)](https://github.com/microsoft/maro/actions?query=workflow%3Alint)
[![Coverage](https://img.shields.io/codecov/c/github/microsoft/maro)](https://codecov.io/gh/microsoft/maro)
[![Downloads](https://img.shields.io/pypi/dm/pymaro)](https://pypi.org/project/pymaro/#files)
[![Docker Pulls](https://img.shields.io/docker/pulls/arthursjiang/maro)](https://hub.docker.com/repository/docker/arthursjiang/maro)
[![Play with MARO](https://raw.githubusercontent.com/microsoft/maro/master/docs/source/images/badges/play_with_maro.svg)](https://hub.docker.com/r/arthursjiang/maro)
[![Docker Pulls](https://img.shields.io/docker/pulls/maro2020/maro)](https://hub.docker.com/repository/docker/maro2020/maro)
[![Play with MARO](https://raw.githubusercontent.com/microsoft/maro/master/docs/source/images/badges/play_with_maro.svg)](https://hub.docker.com/r/maro2020/maro)

# [![MARO LOGO](./docs/source/images/logo.svg)](https://maro.readthedocs.io/en/latest/)

Expand Down Expand Up @@ -58,6 +58,8 @@ of user-defined functions for message auto-handling, cluster provision, and job
| `examples` | Showcase of MARO. |
| `notebooks` | MARO quick-start notebooks. |

*Try [MARO playground](#run-playground) to have a quick experience.*

## Install MARO from [PyPI](https://pypi.org/project/pymaro/#files)

*Notes: The CLI commands (including the visualization tool) are not included in pymaro package. To enable these support, you need to install from source.*
Expand Down Expand Up @@ -185,14 +187,16 @@ maro inspector dashboard --source_path ./dump_data/YOUR_SNAPSHOT_DUMP_FOLDER

## Run Playground

- Pull from [Docker Hub](https://hub.docker.com/repository/registry-1.docker.io/arthursjiang/maro/tags?page=1)
- Pull from [Docker Hub](https://hub.docker.com/r/maro2020/playground)

```sh
# Pull the docker image from docker hub
docker pull maro2020/playground

# Run playground container.
# Redis commander (GUI for redis) -> http://127.0.0.1:40009
# Local host docs -> http://127.0.0.1:40010
# Jupyter lab with maro -> http://127.0.0.1:40011
docker run -p 40009:40009 -p 40010:40010 -p 40011:40011 arthursjiang/maro:cpu
# Jupyter lab with maro -> http://127.0.0.1:40010
docker run -p 40009:40009 -p 40010:40010 maro2020/playground
```

- Build from source
Expand All @@ -204,9 +208,8 @@ maro inspector dashboard --source_path ./dump_data/YOUR_SNAPSHOT_DUMP_FOLDER

# Run playground container.
# Redis commander (GUI for redis) -> http://127.0.0.1:40009
# Local host docs -> http://127.0.0.1:40010
# Jupyter lab with maro -> http://127.0.0.1:40011
docker run -p 40009:40009 -p 40010:40010 -p 40011:40011 maro/playground:cpu
# Jupyter lab with maro -> http://127.0.0.1:40010
docker run -p 40009:40009 -p 40010:40010 maro2020/playground
```

- Windows
Expand All @@ -217,9 +220,8 @@ maro inspector dashboard --source_path ./dump_data/YOUR_SNAPSHOT_DUMP_FOLDER

# Run playground container.
# Redis commander (GUI for redis) -> http://127.0.0.1:40009
# Local host docs -> http://127.0.0.1:40010
# Jupyter lab with maro -> http://127.0.0.1:40011
docker run -p 40009:40009 -p 40010:40010 -p 40011:40011 maro/playground:cpu
# Jupyter lab with maro -> http://127.0.0.1:40010
docker run -p 40009:40009 -p 40010:40010 maro2020/playground
```

## Contributing
Expand Down
62 changes: 22 additions & 40 deletions docker_files/cpu.play.df → docker_files/cpu.playground.df
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
FROM python:3.6
FROM python:3.7

WORKDIR /maro_playground

# Setup notebook
ADD ./notebooks ./notebooks
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install -r ./notebooks/requirements.nb.txt
RUN jupyter contrib nbextension install --system
RUN jt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T


# Install redis
RUN wget http://download.redis.io/releases/redis-6.0.6.tar.gz; tar xzf redis-6.0.6.tar.gz; cd redis-6.0.6; make
RUN rm redis-6.0.6.tar.gz

# Install others
# Install zsh and other packages for the terminal usage
RUN apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update
RUN apt-get install -y zsh
RUN apt-get install -y htop
Expand All @@ -23,42 +11,36 @@ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -
RUN chsh -s `which zsh` && wget https://raw.githubusercontent.com/ArthurJiang/config/master/.zshrc -O ~/.zshrc
RUN apt-get install -y npm
RUN rm -rf /var/lib/apt/lists/*

# Install redis
RUN wget http://download.redis.io/releases/redis-6.0.6.tar.gz; tar xzf redis-6.0.6.tar.gz; cd redis-6.0.6; make
RUN rm redis-6.0.6.tar.gz
RUN npm install -g redis-commander

# Setup notebook
ADD ./notebooks ./notebooks
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install -r ./notebooks/requirements.nb.txt
RUN jupyter contrib nbextension install --system
RUN jt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T
RUN rm ./notebooks/*.txt
RUN rm ./notebooks/*.sh

# Add examples
ADD ./examples ./examples
ADD ./examples/requirements.ex.txt ./examples/requirements.ex.txt
RUN pip install -r ./examples/requirements.ex.txt
RUN rm ./examples/requirements.ex.txt

# Add local docs
ADD ./docs ./docs
ADD ./maro ./maro
ADD setup.py setup.py
ADD ./scripts ./scripts
RUN bash scripts/install_maro.sh
RUN pip install -U -r ./docs/requirements.docs.txt
RUN cd docs; make html
RUN rm -rf ./maro
RUN rm setup.py
RUN rm -rf ./scripts
# Install MARO
RUN pip install pymaro
ENV PYTHONPATH ./

# Add run cmd
ADD ./scripts/run_playground.sh ./run.sh

# Add readme
# Add README
ADD ./playground.md ./README.md

# Clean
RUN rm ./notebooks/*.txt
RUN rm ./notebooks/*.sh
RUN rm -r ./docs/source
RUN rm ./docs/make.bat
RUN rm ./docs/Makefile
RUN rm ./docs/README.md
RUN rm ./docs/requirements.docs.txt
RUN rm -rf ./build
RUN rm -rf ./pymaro.egg-info

# Install maro
RUN pip install pymaro

# Start service
CMD ["/bin/bash", "./run.sh"]
4 changes: 2 additions & 2 deletions docs/source/apidoc/maro.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ maro.utils.exception.communication\_exception
:undoc-members:
:show-inheritance:

maro.utils.exception.data\_lib\_exeption
maro.utils.exception.data\_lib\_exception
--------------------------------------------------------------------------------

.. automodule:: maro.utils.exception.data_lib_exeption
.. automodule:: maro.utils.exception.data_lib_exception
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/greedy_policy_citi_bike.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ This environment is driven by `real trip history data <https://s3.amazonaws.com/

.. note::

All related code snippets are supported in `maro playground <https://hub.docker.com/r/arthursjiang/maro>`_.
All related code snippets are supported in `maro playground <https://hub.docker.com/r/maro2020/playground>`_.
168 changes: 0 additions & 168 deletions docs/source/examples/multi_agent_dqn_cim.rst

This file was deleted.

Loading