SeitaBV / timely-beliefs

Model data as beliefs (at a certain time) about events (at a certain time).
MIT License
34 stars 6 forks source link

BeliefsSeries name and metadata are lost when copying #41

Closed Flix6x closed 3 years ago

Flix6x commented 3 years ago

Name is lost when copying BeliefsSeries.

import timely_beliefs as tb
s = tb.examples.example_df["event_value"]
name = s.name
print(name == s.copy().name)  # False, expected True

Also, metadata is lost.

s.copy().sensor  # AttributeError: 'BeliefsSeries' object has no attribute 'sensor'
Flix6x commented 3 years ago

Actually, the metadata issue was just caused by a local change. But we'll now test for it anyways.