Social network
SocialNetwork
Source code in june/groups/leisure/social_network.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
__init__()
Initialise the SocialNetwork class by loading and precomputing preferences from a YAML file.
Source code in june/groups/leisure/social_network.py
11 12 13 14 15 |
|
decide_target_group_invitation(person, activity)
Decide whether a person invites their household or friends first for an activity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
person
|
A Person object with |
required | |
activity
|
str |
required |
Returns:
Name | Type | Description |
---|---|---|
type |
str: "household" or "friends" |
Source code in june/groups/leisure/social_network.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|