growthcharts / james

Joint Automatic Measurement and Evaluation System (JAMES)
https://growthcharts.org/james/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Incorrect initialization for data with only developmental responses #33

Closed stefvanbuuren closed 4 months ago

stefvanbuuren commented 4 months ago

JAMES 1.6.0 incorrectly shows the chart for 0-15m height when the JSON data contain only developmental data. We could get the correct chart by pressing one of the controls. The expected behavior is that JAMES selects the correct chart right away.

Interactive example for v1.6.0: Run https://tnochildhealthstatistics.shinyapps.io/james_tryout/, select "Groep: Test" and "Naam test: T25 Extreme D-score at start".

Reprex via code:

# Reproduce issue 33: Incorrect initialization for files containing
# developmental data only
# james 1.6.0
library(jamesclient)
library(jamesdemodata)
test25 <- system.file("extdata", "bds_v3.0", "test", "test25.json",
                      package = "jamesdemodata")
host <- "https://james.groeidiagrammen.nl"
r <- james_post(host = host, path = "/site/request/json",
                sitehost = host, txt = test25)
r$parsed
#> [1] "https://james.groeidiagrammen.nl/site?session=x094048ebfab4e0"
browseURL(r$parsed)

Created on 2024-05-07 with reprex v2.1.0

stefvanbuuren commented 4 months ago

Problem resolved in james 1.6.2