stan-dev / stan-dev/stan

Fix stan_csv_reader and test

Open
#507 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug code cleanup i/o interface
Dominant language
C++
Stars
2.8k
Forks
388
Avg merge
2d 17h
Merged PRs (30d)
15

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading stan_csv_reader and stan_csv_reader_test, then review refactors #405 and #488 for the intended reader specification. Check the Makefile support for generating comparison output files. Done means the reader parses the input data correctly and the test uses regenerated outputs rather than deprecated static files.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data, testing-qa
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.