-
Notifications
You must be signed in to change notification settings - Fork 71
Minimum Product: moved managers to their own package #263
Conversation
Ah... It's the os.path I missed. Good job:) |
Also changed it to work on Windows just now. It was using |
Does this now work on both UNIX and Windows? |
This particular class, I think so. |
Just pulled from your fork. Works on UNIX (but more and more often I'm starting to see the socket error with an address being in use now and I need to kill processes manually. That's a different story though and could be because I stop tests mid-way sometimes). Can't approve as I'm not requested. |
Would it be possible to replace the |
We need to be cross platform, anything with / inside won't work on Windows |
1c81245
to
93d9ac1
Compare
@CelineBoudier Removed the remaining "/". Good catch 👍 Regarding the socket error, that is probably due to the tests being stopped halfway. We could catch the signal and kill those automatically, but idk if is worthed spending time on that. You can do something like |
|
from .dummy_avatar import WaitDummy | ||
from simulation.managers.turn_manager import ConcurrentTurnManager, SequentialTurnManager | ||
from .dummy_avatar import DummyAvatarManager, MoveEastDummy, MoveNorthDummy | ||
from .dummy_avatar import MoveSouthDummy, MoveWestDummy, WaitDummy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might make more sense to import WaitDummy and DummyAvatarManager then the Directions one separately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Squash? |
bbe2d5e
to
c282253
Compare
👍 |
Can't approve. @CelineBoudier |
Apparently, one can re-request reviews? 🤔 |
Github isn't smart enough to notice that a rebase is actually a change, so you need to dismiss old review and request a new one, yep :P |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve when it's more squashed :)
c282253
to
4cb3440
Compare
So actually, I think that:
|
@CelineBoudier I don't find this harmful nor beneficial, so I guess we could leave it like it is. Regarding the naming I think the name WorkerManager is quite good, as its only purpose is actually keeping an updated set of workers that can be pinged for actions by the TurnManager. Should we close this, then? Another comment not necessarily on this topic, but on refactoring: If the purpose of restructuring the folder structure is to group the dependencies together, I think the main concern should be breaking the world_map class in smaller components and removing unnecessary dependencies. (as I think that is the hardest class to work with and will probably change a lot as new features appear) |
#282. |
Fixes #257