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

Fix stan_csv_reader and test #507

Open
betanalpha opened this issue Jan 20, 2014 · 9 comments
Open

Fix stan_csv_reader and test #507

betanalpha opened this issue Jan 20, 2014 · 9 comments

Comments

@betanalpha
Copy link
Contributor

The stan_csv_reader is broken and has been for some time. The internal state is extremely fragile and right now it incorrectly parses the input data file. Any fix would require some significant hacking -- we really should fix this as a consequence of the refactor in #405 and #488, after which we'll have an actual spec for the reader to match.

Unit tests never revealed this to be an issue because the associated test, stan_csv_reader_test, uses static output files for comparison that were deprecated. We now have the makefile-fu to automatically generate these files and avoid this issue in the future.

@syclik syclik modified the milestones: v2.3.0++, v2.3.0 May 15, 2014
@bob-carpenter
Copy link
Contributor

Michael --- could you start a branch and add a test that fails? Or just include a file that fails here?

I'm pushing this off to 2.4.0+ for now, since it doesn't seem to be critical. If it is, can someone push it back down to 2.4.0 and commit to fixing it?

@bob-carpenter bob-carpenter modified the milestones: v2.4.0++, v2.4.0 Jul 7, 2014
@syclik syclik modified the milestones: v2.5.0++, v2.5.0 Sep 19, 2014
@bob-carpenter
Copy link
Contributor

Michael --- if you want this fixed, could you be more specific about what's going wrong?

I'm pushing this issue off indefinitely pending some indication of what's broken.

@bob-carpenter bob-carpenter modified the milestones: Future, v2.5.0++ Sep 22, 2014
@betanalpha
Copy link
Contributor Author

The problem is that the csv_reader is hardcoded to an older set of configuration
options. It needs to automatically sync up with the current config (say, by actually
using the config code), but that requires a decision on how the config should be
used in the API.

On Sep 22, 2014, at 11:29 PM, Bob Carpenter notifications@github.com wrote:

Michael --- if you want this fixed, could you be more specific about what's going wrong?

I'm pushing this issue off indefinitely pending some indication of what's broken.


Reply to this email directly or view it on GitHub.

@syclik syclik modified the milestones: v2.13.1++, Future Nov 30, 2016
@syclik
Copy link
Member

syclik commented Nov 30, 2016

I'm bumping this issue forward. This code is messy and really should just be rewritten.

@bob-carpenter, do you have any guiding principles for writing a parser for the csvs? This is also causing stan-dev/cmdstan#510.

@bob-carpenter
Copy link
Contributor

My only strong recommendation is to write a generic CSV parser, then plug it into Stan. Don't mix in all sorts of stuff about reading from comments or particular orders of things in the Stan files.

@betanalpha
Copy link
Contributor Author

betanalpha commented Nov 30, 2016 via email

@sakrejda
Copy link
Contributor

sakrejda commented Nov 30, 2016 via email

@bob-carpenter
Copy link
Contributor

bob-carpenter commented Nov 30, 2016 via email

@syclik
Copy link
Member

syclik commented Nov 30, 2016 via email

@syclik syclik modified the milestones: v2.13.2, v2.13.2++ Dec 26, 2016
@bob-carpenter bob-carpenter added this to the Future milestone Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants