Skip to content
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

Add CSV reading to observation #60

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Add CSV reading to observation #60

wants to merge 27 commits into from

Conversation

jlacomis
Copy link
Collaborator

Implement functionality in #59

@coveralls
Copy link

coveralls commented Mar 20, 2018

Coverage Status

Coverage decreased (-1.3%) to 95.385% when pulling af75c30 on csv-reading into d44a747 on master.

@ChrisTimperley
Copy link
Contributor

Want to copy across the test cases from ABM?


def __len__(self) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for removing this?

def __init__(self, observations: List[Observation]) -> None:
self.__observations = observations.copy()
observations = list(reader)
self.__observations = iter(observations)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to create a fresh observation collection every time? Seems error prone. Is that the intent, or is the intent to lazily create the Observation instances?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants