Skip to content

Commit

Permalink
Make users import xactor instead xactor.mpi_actor
Browse files Browse the repository at this point in the history
  • Loading branch information
parantapa committed Dec 4, 2019
1 parent 5c073d5 commit 42a9979
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test_xactor/test_fanout.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import random
import logging
import xactor.mpi_actor as xa
import xactor as xa

MIN_NUM = 100
MAX_NUM = 200
Expand Down
2 changes: 1 addition & 1 deletion test_xactor/test_hello.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Hello World in XActor."""

import logging
import xactor.mpi_actor as xa
import xactor as xa

class Greeter:
def greet(self, name):
Expand Down
2 changes: 1 addition & 1 deletion test_xactor/test_ping_pong.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from time import time

import logging
import xactor.mpi_actor as xa
import xactor as xa

class Worker:
def __init__(self):
Expand Down
2 changes: 2 additions & 0 deletions xactor/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
"""XActor: A Distributed Actor Programming Framework for Python."""

from xactor.mpi_actor import *
1 change: 1 addition & 0 deletions xactor/mpi_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"delete_actors",
"MASTER_RANK",
"EVERY_RANK",
"WORLD_SIZE",
"getLogger",
]

Expand Down

0 comments on commit 42a9979

Please sign in to comment.