Skip to content

Add "save to CSV" method to the PublicationVenue model #17

@tompollard

Description

@tompollard

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 []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions