Skip to content

Conversation

@abesolberg
Copy link

In the previous version of the package, the author mistakenly classified ProductType 3 as GWH and 4 as GWOH whereas the handbook shows the opposite.

All GWH conversion factors should be less than GWOH (ConversionFactor[ProductType == 4] < ConversionFactor[ProductType == 3].

Changes here include:

  • Replaced the FDIR table with correct version.
  • Changed the FDIRfactors-datadoc.R documentation script to reflect the correct codes (3 for GWOH and 4 for GWH)
  • Changed line 248 in tinytest/test-StoxBaselineFunctions.R to expect_true(all(fdirtab$WeightFactor[fdirtab$ProductType==3] > fdirtab$WeightFactor[fdirtab$ProductType==4])) to ensure that the GWHO conversion code is > than GWH.
  • Added gitlab-ci.yml & RstoxData Makefile

Abe Solberg added 9 commits October 24, 2025 10:28
correct FDIR.factors.VIII.2022 product type 3 = GWOH, 4 = GWH

See merge request digital-utvikling/r-packages/stoxproject/RstoxFDA!1
add makefile

See merge request digital-utvikling/r-packages/stoxproject/RstoxFDA!2
Merge correct test

See merge request digital-utvikling/r-packages/stoxproject/RstoxFDA!3
@arnejohannesholmin arnejohannesholmin merged commit 886495b into testing Nov 3, 2025
16 checks passed
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.

3 participants