Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

Add a method to check if context contains any agents by type #29

Closed ncollier closed 1 year ago

ncollier commented 2 years ago

Something like:

has_type = True if atype_id in self._agents_by_type and len(self._agents_by_type[atype_id]) > 0 else False
ncollier commented 1 year ago

Added