sigs¶
SIG ¶
A special interest group (SIG).
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The SIG ID, e.g. "sigsem". |
parent |
SIGIndex
|
The parent SIGIndex instance. |
acronym |
str
|
The SIG's acronym or short name, e.g. "SIGSEM". |
name |
str
|
The SIG's full name. |
url |
Optional[str]
|
A website URL for the SIG. |
description |
Optional[str]
|
A description text that appears on the website and may contain Markdown. |
related_ids |
list[str]
|
A list of SIG IDs that should be considered related to this one. This induces a symmetric relationship. To find related SIGs, use |
external_meetings |
list[SIGMeeting]
|
A list of SIGMeeting instances recording meetings that are not part of the Anthology. |
venue_ids |
tuple[str, ...]
|
A list of venues associated with this SIG, to be used as an aid during ingestion. See also venues(). |
item_ids |
set[AnthologyIDTuple]
|
An unordered set of volume IDs associated with this venue. |
add_venue ¶
add_venue(venue)
Associate a venue with this SIG.
If the venue is already associated with this SIG, this will do nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
venue
|
str | Venue
|
A Venue object, or a string representing a venue ID. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If a string was given, but the venue does not exist. |
get_meetings_by_year ¶
get_meetings_by_year()
Get all associated meetings, grouped by year.
Returns:
| Type | Description |
|---|---|
dict[str, list[str | SIGMeeting]]
|
A dictionary where keys are strings representing years, and values are meetings of this SIG in that year. |
related ¶
related()
remove_venue ¶
remove_venue(venue)
venues ¶
venues()
A list of venues associated with this SIG.
Note
This is only used as an aid during ingestion; these associations are not propagated automatically to volumes (i.e. volumes belonging to this SIG are not automatically associated with these venues, too).
SIGIndex ¶
Bases: SlottedDict[SIG]
Index object through which SIGs and their associated volumes can be accessed.
Provides dictionary-like functionality mapping SIG IDs to SIG objects.
Attributes:
| Name | Type | Description |
|---|---|---|
parent |
Anthology
|
The parent Anthology instance to which this index belongs. |
path |
Path
|
The path to |
no_item_ids |
bool
|
If set to True, skips parsing all XML files, which means the reverse-indexing of Volumes via |
related |
dict[str, set[str]]
|
A dictionary mapping SIG IDs to a set of related SIG IDs. |
is_data_loaded |
bool
|
A flag indicating whether the data file has been loaded and the index has been built. |
build ¶
build()
Load the entire Anthology data and build an index of SIGs.
Raises:
| Type | Description |
|---|---|
ValueError
|
If a volume lists a SIG ID that doesn't exist (i.e., isn't defined in |
create ¶
create(id, acronym, name, **kwargs)
Create a new venue and add it to the index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The ID of the new SIG. |
required |
acronym
|
str
|
The acronym of the new SIG. |
required |
name
|
str
|
The name of the new SIG. |
required |
**kwargs
|
Any
|
Any valid optional attribute of SIG, with the exception of |
{}
|
Returns:
| Type | Description |
|---|---|
SIG
|
The created SIG object. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If an invalid attribute is supplied in |