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

Handle tables in data #528

Merged
merged 7 commits into from Jul 3, 2021
Merged

Handle tables in data #528

merged 7 commits into from Jul 3, 2021

Conversation

jgabry
Copy link
Member

@jgabry jgabry commented Jul 2, 2021

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

Closes #527 by removing the "table" class from tables.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Columbia University

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

@jgabry jgabry changed the title Handle tables indata Handle tables in data Jul 2, 2021
R/data.R Show resolved Hide resolved
R/data.R Show resolved Hide resolved
R/data.R Show resolved Hide resolved
R/data.R Show resolved Hide resolved
@@ -76,19 +76,62 @@ test_that("JSON output for list of matrices is correct", {
file = test_path("answers", "json-matrix-lists.json"))
})

test_that("write_stan_json() throws correct errors", {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i split these tests up into separate tests for the different errors

@jgabry jgabry requested a review from rok-cesnovar July 2, 2021 17:11
@codecov-commenter
Copy link

codecov-commenter commented Jul 2, 2021

Codecov Report

Merging #528 (f7aa762) into master (38ea435) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #528      +/-   ##
==========================================
+ Coverage   92.78%   92.79%   +0.01%     
==========================================
  Files          12       12              
  Lines        3035     3041       +6     
==========================================
+ Hits         2816     2822       +6     
  Misses        219      219              
Impacted Files Coverage Δ
R/data.R 99.27% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38ea435...f7aa762. Read the comment docs.

Copy link
Member

@rok-cesnovar rok-cesnovar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks!

@rok-cesnovar rok-cesnovar merged commit a02159c into master Jul 3, 2021
@rok-cesnovar rok-cesnovar deleted the handle-tables-indata branch July 3, 2021 07:53
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 this pull request may close these issues.

Please treat 1D table objects as vectors
3 participants