-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group entity #175
base: master
Are you sure you want to change the base?
Group entity #175
Changes from 31 commits
d89dd45
ffc4927
7aebe13
710242a
1ffd331
c0994c4
2895209
9c473e1
284b877
fbb26f6
bdeb128
9747ce5
032528c
b3bc2c6
4019e10
30409da
03ff3a0
9b4aaa9
f088423
329ab84
696eb74
75580f4
244a601
53f58d9
b602e71
07035ab
ae3024d
356df4b
76474cd
447b6b8
34904c6
bf446bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ may not be sufficient and a distinction of social strata or other social groups | |
"indigenous people", "social democrats", a certain NGO, ...) | ||
that is transverse to the former partitioning is helpful in addition. | ||
|
||
For this, we will in the future provide an entity-type "group" | ||
For this, the entity-type "group" is provided | ||
which is meant to represent any grouping of individuals (that may come from one or several social systems) | ||
by meaningful cultural or social-metabolic aspects. | ||
|
||
|
@@ -33,25 +33,30 @@ Basic relationships to other entity-types | |
|
||
A group will usually... | ||
|
||
- have several member :doc:`individuals<individual>` | ||
- have several members :doc:`individuals<individual>`, | ||
which is represented by a group membership directed network owned by the culture taxon | ||
|
||
In addition, a group may... | ||
|
||
- have one or several "leader" :doc:`individuals<individual>`, | ||
of which one may be the dominant leader | ||
- have an "intra" group network between members :doc:`individuals<individual>` | ||
(this feature is not completely implemented yet) | ||
|
||
- have a "headquarters" :doc:`cell<cell>` | ||
- have one or several "leader" :doc:`individuals<individual>`, | ||
of which one may be the dominant leader (this feature is not implemented yet) | ||
|
||
- be related to other groups via some network owned by the culture taxon | ||
- have a "headquarters" :doc:`cell<cell>` (this feature is not implemented yet) | ||
|
||
- be related to other groups via an "inter" network owned by the culture taxon | ||
(which will typically interact with the network of personal acquaintance between member individuals) | ||
- (this feature is not completely implemented yet) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here. |
||
|
||
- act as the current "elite" in some :doc:`social system<social system>` | ||
- act as the current "elite" in some :doc:`social system<social system>` (this feature is not implemented yet) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here. |
||
|
||
All these relationships may be dynamic. | ||
|
||
Finally, a group may... | ||
|
||
- be a permanent subgroup of a larger group or :doc:`social system<social system>` *by definition* | ||
(rather than by coincidence, e.g., "scientists" are by definition a subgroup of the group "academics", | ||
and "German workers" may be by definition a subgroup of the social system "Germany") | ||
and "German workers" may be by definition a subgroup of the social system "Germany") - (this feature is not implemented yet) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Master data model for group.""" | ||
|
||
"""https://github.com/pik-copan/pycopancore/blob/master/docs/framework_documentation/abstract_level/entity_types/group.rst""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do not add absolute url paths to the code. |
||
|
||
from .. import Variable | ||
|
||
from networkx import Graph | ||
|
||
class Group: | ||
|
||
#TODO: specify edges | ||
|
||
intra_group_network = \ | ||
Variable("intra group network", | ||
"""Basic undirected social network between | ||
Group members.""", | ||
scale='nominal', | ||
datatype=Graph) | ||
|
||
has_leader = \ | ||
Variable("has a leader", | ||
"whether the group has a leader", | ||
scale="ordinal", levels=[False, True], default=False) | ||
|
||
has_headquarter = \ | ||
Variable("has a headquarter", | ||
"whether the group has a headquarter located in a cell", | ||
scale="ordinal", levels=[False, True], default=False) | ||
|
||
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Abstract Group entity type class, inherited by base model component.""" | ||
|
||
# This file is part of pycopancore. | ||
# | ||
# Copyright (C) 2016-2017 by COPAN team at Potsdam Institute for Climate | ||
# Impact Research | ||
# | ||
# URL: <http://www.pik-potsdam.de/copan/software> | ||
# Contact: core@pik-potsdam.de | ||
# License: BSD 2-clause license | ||
|
||
from ...private import _AbstractEntityMixin | ||
from ...data_model import OrderedSet | ||
|
||
|
||
class Group (_AbstractEntityMixin): | ||
"""Abstract Group entity type class. | ||
|
||
Inherited by base model component. | ||
""" | ||
|
||
variables = OrderedSet() | ||
"""All variables occurring in this entity type""" | ||
|
||
|
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.
only describe (and explicitly) what feature is implemented and add
TODO
tags in the code.