Right now, we populate the PublicationVenue data structure with information like: (1) number of papers (2) whether or not those papers mention PhysioNet.
We don't save the information anywhere, so it gets lost after an analysis is complete. We should add a save_to_csv method to the PublicationVenue class so that we can record data to CSV at the end of an analysis.
|
class PublicationVenue: |
|
""" |
|
A class to represent a publication venue (either a conference or journal). |
|
|
|
Attributes: |
|
title (str): Full title of the venue. |
|
shortname (str): Abbreviated name of the venue. |
|
year (int): Year the venue was held or published. |
|
publications (list of Publication): List of publications. |
|
""" |
|
|
|
def __init__(self, title, shortname, year, path, publications=None): |
|
""" |
|
Constructs all the necessary attributes for the publication venue. |
|
|
|
Parameters: |
|
title (str): Full title of the venue. |
|
shortname (str): Abbreviated name of the venue. |
|
year (int): Year held or published. |
|
path (str): Path to folder containing publications. |
|
publications (list of Publication, optional): List of publications. |
|
""" |
|
self.title = title |
|
self.shortname = shortname |
|
self.year = year |
|
self.path = path |
|
self.publications = publications if publications is not None else [] |
Right now, we populate the
PublicationVenuedata structure with information like: (1) number of papers (2) whether or not those papers mention PhysioNet.We don't save the information anywhere, so it gets lost after an analysis is complete. We should add a
save_to_csvmethod to thePublicationVenueclass so that we can record data to CSV at the end of an analysis.physionet-25-years/src/twentyfiveyears/models.py
Lines 16 to 42 in 9405e4c