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

Writing or reading empty series may be broken #8

Closed
jasonjensen opened this issue Nov 14, 2022 · 1 comment · Fixed by #9
Closed

Writing or reading empty series may be broken #8

jasonjensen opened this issue Nov 14, 2022 · 1 comment · Fixed by #9

Comments

@jasonjensen
Copy link
Contributor

There is a potential issue with reading and writing empty TSeries to a fame db; the read series does not have the same start date.

image

steps to reproduce:

k = Workspace(;t1 = TSeries(1995Q1))
writefame("test.db", k)
readfame("test.db")

Reading the db in FAME does not provide much clarity:
image

@bbejanov
Copy link
Member

Thanks for reporting that, Jason. The problem is that empty series in FAME don't have starting dates, while in TimeSeriesEcon they do. So, the information about the first date gets lost when we write an empty series, and when we load it we assign the maximum Int value reinterpreted as an MIT for the first date.

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 a pull request may close this issue.

2 participants