june.groups.leisure.social_venue¶
Initialize self. See help(type(self)) for accurate signature.
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
A group of people such as in a hospital or a school.
If a spec attribute is not defined in the child class then it is generated by converting the class name into snakecase.
An enumeration.
A group of people such as in a hospital or a school.
If a spec attribute is not defined in the child class then it is generated by converting the class name into snakecase.
Return a set of all of the people in the subgroups with a particular health status
- attribute
The name of the attribute in the subgroup, e.g. “in_hospital”
The union of all the sets with the given attribute name in all of the sub groups.
Iterate an id for this class. Each group class has its own id iterator starting at 0
Add a person to a given subgroup. For example, in a school a student is added to the subgroup matching their age.
- person
A person
group_type
Returns the speciailization of the group.
Remove a person from this group by removing them from the subgroup to which they belong
- person
A person
Does this group contain at least one person?
The name is computed on the fly to reduce memory footprint. It combines the name fo the class with the id of the instance.
All the people in this group
alias of
SocialVenue
Initialize self. See help(type(self)) for accurate signature.
Makes a dictionary with the ids of the members.
Adds all venues to the closest super area
Generates social venues in the given areas.
- areas
list of areas to generate the venues in
- venues_per_capita
number of venues per person in each area.
- venues_per_area
number of venues in each area.
Generates social venues in the given super areas.
- super_areas
list of areas to generate the venues in
- venues_per_super_area
how many venus per super_area to generate
Queries the ball tree for the closests venues.
- coordinates
coordinates in the format [Latitude, Longitude]
- k
number of neighbours desired
Returns the speciailization of the super group.
Queries the ball tree for the closests venues.
- coordinates
coordinates in the format [Latitude, Longitude]
- radius
radius in km to query