-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
Want to copy across the test cases from ABM? |
src/blameandshame/observation.py
Outdated
|
||
def __len__(self) -> int: |
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.
Any reason for removing this?
src/blameandshame/observation.py
Outdated
def __init__(self, observations: List[Observation]) -> None: | ||
self.__observations = observations.copy() | ||
observations = list(reader) | ||
self.__observations = iter(observations) |
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.
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?
Implement functionality in #59