Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ __pycache__/*
.cache/*
.*.swp
*/.ipynb_checkpoints/*
*.DS_Store

# Project files
.ropeproject
Expand Down
13 changes: 4 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@

sudo: false
language: python
virtualenv:
system_site_packages: true
env:
matrix:
- DISTRIB="ubuntu" PYTHON_VERSION="2.7" COVERAGE="true"
- DISTRIB="conda" PYTHON_VERSION="2.7" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.3" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.4" COVERAGE="false"
python:
- "3.5"
addons:
apt:
packages:
- git
- python-pip
env:
- export PYTHONPATH=$TRAVIS_BUILD_DIR
install:
- source tests/travis_install.sh
- pip install -r requirements.txt
before_script:
- git config --global user.email "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions distalg/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def _receive_msgs():

def __init__(self, pid=None):
self._id = pid or shortuuid.uuid()
self.in_channels = []
self.out_channels = []
self.in_channels = set()
self.out_channels = set()
self.incoming_msgs = asyncio.Queue()
self.receive_msgs = self._receive_msgs_creator()

Expand Down
4 changes: 2 additions & 2 deletions distalg/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def __init__(self, embedding_graph=None, process_type=Process, channel_type=Chan
channel._back = rev_channel
rev_channel._back = channel

process_n.out_channels.append(channel)
process_nbr.in_channels.append(channel)
process_n.out_channels.add(channel)
process_nbr.in_channels.add(channel)

async def start_all(self):
self.tasks += [asyncio.ensure_future(process.run()) for process in self.node_map] \
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ python-dateutil==2.6.0
pytz==2017.2
shortuuid==0.5.0
six==1.10.0
wrapt==1.10.11