Skip to content

Commit

Permalink
-Change module name in setup.py. Fixes #1
Browse files Browse the repository at this point in the history
-Add sub-modules to setup.py. Fixes #2
-Change configuration files path and README so that the launch_agent script can be executed directly from the scripts folder. Fixes #3
  • Loading branch information
alvarovalcarce committed Apr 17, 2020
1 parent 1257d3a commit 86b7a20
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ The code has been tested to work on Python 3.7 under Windows 10.
git clone https://github.com/nokia/wireless-suite.git
```
2. Use `pip` to install the package:
2. Use `pip3` to install the package:
```
pip install --upgrade pip
pip install .
cd wireless-suite
pip3 install .
```
3. **OPTIONAL**: Modify the script *scripts/launch_agent.py* to execute a problem of your choosing.
4. **OPTIONAL**: Modify the configuration of your problem at *config/config_environment.json*.
5. Simulate an agent-environment interaction:
```
cd wireless/scripts
python launch_agent.py
```
3. Modify the script *scripts/launch_agent.py* to execute an environment of your choosing and obtain performance results.

## Provided problems

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"""
from setuptools import setup

setup(name='wireless_suite',
version='1.0',
packages=['wireless_suite'],
setup(name='wireless-suite',
version='1.1',
packages=['wireless', 'wireless', 'wireless.agents', 'wireless.envs', 'wireless.utils'],
license='„2020 Nokia. Licensed under the BSD 3 Clause license. SPDX-License-Identifier: BSD-3-Clause',
description='Modules for executing wireless communication problems as OpenAI Gym environments.',
install_requires=['gym', 'numpy', 'scipy', 'sacred', 'pytest']
Expand Down
6 changes: 3 additions & 3 deletions wireless/scripts/launch_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
from wireless.agents.proportional_fair import *

# Load agent parameters
with open('config/config_agent.json') as f:
with open('../../config/config_agent.json') as f:
ac = json.load(f)

# Configure experiment
with open('config/config_sacred.json') as f:
with open('../../config/config_sacred.json') as f:
sc = json.load(f) # Sacred Configuration
ns = sc["sacred"]["n_metrics_points"] # Number of points per episode to log in Sacred
ex = Experiment(ac["agent"]["agent_type"])
Expand All @@ -30,7 +30,7 @@
# ex.observers.append(MongoObserver(url=mongo_db_url, db_name=sc["sacred"]["sacred_db"])) # Uncomment to save to DB

# Load environment parameters
with open('config/config_environment.json') as f:
with open('../../config/config_environment.json') as f:
ec = json.load(f)
ex.add_config(ec)

Expand Down

0 comments on commit 86b7a20

Please sign in to comment.