drvec 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. {drvec-0.1.0 → drvec-0.1.2}/CHANGELOG.md +41 -0
  2. {drvec-0.1.0/src/drvec.egg-info → drvec-0.1.2}/PKG-INFO +2 -2
  3. {drvec-0.1.0 → drvec-0.1.2}/README.md +1 -1
  4. {drvec-0.1.0 → drvec-0.1.2}/pyproject.toml +1 -1
  5. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/data.py +16 -0
  6. {drvec-0.1.0 → drvec-0.1.2/src/drvec.egg-info}/PKG-INFO +2 -2
  7. {drvec-0.1.0 → drvec-0.1.2}/src/drvec.egg-info/SOURCES.txt +1 -0
  8. {drvec-0.1.0 → drvec-0.1.2}/tests/conftest.py +82 -2
  9. {drvec-0.1.0 → drvec-0.1.2}/tests/test_bundled.py +6 -3
  10. {drvec-0.1.0 → drvec-0.1.2}/tests/test_c_engine.py +5 -4
  11. drvec-0.1.2/tests/test_mixed_refactors.py +49 -0
  12. {drvec-0.1.0 → drvec-0.1.2}/tests/test_rank_drift.py +9 -0
  13. {drvec-0.1.0 → drvec-0.1.2}/COPYING +0 -0
  14. {drvec-0.1.0 → drvec-0.1.2}/MANIFEST.in +0 -0
  15. {drvec-0.1.0 → drvec-0.1.2}/csrc/VENDORED.json +0 -0
  16. {drvec-0.1.0 → drvec-0.1.2}/csrc/build_drvec.py +0 -0
  17. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/LICENSE +0 -0
  18. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/Makefile +0 -0
  19. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/include/diagmvhost.h +0 -0
  20. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/include/fue_bridge.h +0 -0
  21. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/include/fue_pre_reader.h +0 -0
  22. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/include/main.h +0 -0
  23. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/include/optimhost.h +0 -0
  24. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/diagnose.c +0 -0
  25. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/drvec.c +0 -0
  26. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/drvmlest.c +0 -0
  27. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/elfvarma.c +0 -0
  28. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/fue_bridge.c +0 -0
  29. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/fue_pre_reader.c +0 -0
  30. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/nlatools.c +0 -0
  31. {drvec-0.1.0 → drvec-0.1.2}/csrc/engines/drvec/src/qnewtopt.c +0 -0
  32. {drvec-0.1.0 → drvec-0.1.2}/csrc/lib/diagmv/diagmv.c +0 -0
  33. {drvec-0.1.0 → drvec-0.1.2}/csrc/lib/diagmv/diagmv.h +0 -0
  34. {drvec-0.1.0 → drvec-0.1.2}/csrc/lib/fuedet/fuedet.c +0 -0
  35. {drvec-0.1.0 → drvec-0.1.2}/csrc/lib/fuedet/fuedet.h +0 -0
  36. {drvec-0.1.0 → drvec-0.1.2}/csrc/lib/optim/lnsrch.c +0 -0
  37. {drvec-0.1.0 → drvec-0.1.2}/docs/API.md +0 -0
  38. {drvec-0.1.0 → drvec-0.1.2}/docs/PORT.md +0 -0
  39. {drvec-0.1.0 → drvec-0.1.2}/setup.cfg +0 -0
  40. {drvec-0.1.0 → drvec-0.1.2}/setup.py +0 -0
  41. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/__init__.py +0 -0
  42. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/_gsl.py +0 -0
  43. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/api.py +0 -0
  44. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/c_engine.py +0 -0
  45. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/cast.py +0 -0
  46. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/cli.py +0 -0
  47. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/diagnose.py +0 -0
  48. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/fdhess.py +0 -0
  49. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/fit.py +0 -0
  50. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/forecast.py +0 -0
  51. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/irfboot.py +0 -0
  52. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/levels.py +0 -0
  53. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/loglik.py +0 -0
  54. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/nla.py +0 -0
  55. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/parallel.py +0 -0
  56. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/params.py +0 -0
  57. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/rank.py +0 -0
  58. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/report.py +0 -0
  59. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/results.py +0 -0
  60. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/rng.py +0 -0
  61. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/rungtable.py +0 -0
  62. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/start.py +0 -0
  63. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/stderr.py +0 -0
  64. {drvec-0.1.0 → drvec-0.1.2}/src/drvec/xlink.py +0 -0
  65. {drvec-0.1.0 → drvec-0.1.2}/src/drvec.egg-info/dependency_links.txt +0 -0
  66. {drvec-0.1.0 → drvec-0.1.2}/src/drvec.egg-info/entry_points.txt +0 -0
  67. {drvec-0.1.0 → drvec-0.1.2}/src/drvec.egg-info/requires.txt +0 -0
  68. {drvec-0.1.0 → drvec-0.1.2}/src/drvec.egg-info/top_level.txt +0 -0
  69. {drvec-0.1.0 → drvec-0.1.2}/tests/accessors.py +0 -0
  70. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/SOURCE +0 -0
  71. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1-inp/SOURCE +0 -0
  72. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1-inp/e1cons.inp +0 -0
  73. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1-inp/e1income.inp +0 -0
  74. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1-inp/e1invest.inp +0 -0
  75. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1alpha.txt +0 -0
  76. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1cons.pre +0 -0
  77. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1income.pre +0 -0
  78. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1invest.pre +0 -0
  79. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1seas.cons.pre +0 -0
  80. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1seas.income.pre +0 -0
  81. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/e1seas.invest.pre +0 -0
  82. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/make_m5.py +0 -0
  83. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/minkmu.pre +0 -0
  84. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmb40.mink.pre +0 -0
  85. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmdet.mink.pre +0 -0
  86. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmdet.minkmu.pre +0 -0
  87. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmdet.muskrat.pre +0 -0
  88. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmmon.mink.pre +0 -0
  89. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmmon.muskrat.pre +0 -0
  90. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmpre.mink.pre +0 -0
  91. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmpre.muskrat.pre +0 -0
  92. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/mmpre.step.pre +0 -0
  93. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xmon.pre +0 -0
  94. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xnet1.txt +0 -0
  95. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xnet2.txt +0 -0
  96. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xnetm.txt +0 -0
  97. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xrev.pre +0 -0
  98. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xrevar0.pre +0 -0
  99. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xrevarma.pre +0 -0
  100. {drvec-0.1.0 → drvec-0.1.2}/tests/data/fixtures/xrevdet.pre +0 -0
  101. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/README.md +0 -0
  102. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/est-dump.patch +0 -0
  103. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/proute.est.txt +0 -0
  104. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/rankboot.est.txt +0 -0
  105. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/rng_first.txt +0 -0
  106. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/rng_reference.c +0 -0
  107. {drvec-0.1.0 → drvec-0.1.2}/tests/data/golden/specs.json +0 -0
  108. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/SOURCE +0 -0
  109. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/b40.forecast +0 -0
  110. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/b40.out +0 -0
  111. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/b40rank.out +0 -0
  112. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/casepre.out +0 -0
  113. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/cprank.out +0 -0
  114. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/cprboot.boot +0 -0
  115. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/cprboot.out +0 -0
  116. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/cprq.out +0 -0
  117. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dboot.boot +0 -0
  118. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dboot.out +0 -0
  119. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dcpfc.forecast +0 -0
  120. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dcpfc.out +0 -0
  121. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dcprank.out +0 -0
  122. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dcpre.out +0 -0
  123. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ddet201.out +0 -0
  124. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ddet211.out +0 -0
  125. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dfc.forecast +0 -0
  126. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dfc.out +0 -0
  127. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dfcmon.forecast +0 -0
  128. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dfcmon.out +0 -0
  129. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dfdh.out +0 -0
  130. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dgate.out +0 -0
  131. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dgate2.out +0 -0
  132. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dgatepq.out +0 -0
  133. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dgateq.out +0 -0
  134. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/drank.out +0 -0
  135. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dstep.out +0 -0
  136. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/dxsys.out +0 -0
  137. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1alpha.out +0 -0
  138. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1boot.boot +0 -0
  139. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1boot.out +0 -0
  140. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1cprank.out +0 -0
  141. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1fc.forecast +0 -0
  142. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1fc.out +0 -0
  143. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1fc.recursive +0 -0
  144. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1fdh.out +0 -0
  145. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1fit.out +0 -0
  146. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1gate.out +0 -0
  147. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1ndrank.out +0 -0
  148. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1rungs.out +0 -0
  149. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1seas.out +0 -0
  150. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1sfc.forecast +0 -0
  151. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1sfc.out +0 -0
  152. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1sfc.recursive +0 -0
  153. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/e1srank.out +0 -0
  154. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ewin.forecast +0 -0
  155. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ewin.out +0 -0
  156. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ewin.recursive +0 -0
  157. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fc201.forecast +0 -0
  158. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fc201.out +0 -0
  159. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fc211.forecast +0 -0
  160. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fc211.out +0 -0
  161. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fcpre.forecast +0 -0
  162. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fcpre.out +0 -0
  163. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fdh201.out +0 -0
  164. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fdh211.out +0 -0
  165. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fixb2row.out +0 -0
  166. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fixb2s.out +0 -0
  167. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/fixb2v.out +0 -0
  168. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/gzero.out +0 -0
  169. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/gzeroa.out +0 -0
  170. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/irfboot.irfboot +0 -0
  171. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/irfboot.out +0 -0
  172. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/mon201.out +0 -0
  173. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ms201.out +0 -0
  174. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/ms211.out +0 -0
  175. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/msrank.out +0 -0
  176. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/nodrift.out +0 -0
  177. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/proute.out +0 -0
  178. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/rankboot.boot +0 -0
  179. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/rankboot.out +0 -0
  180. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/rungs.out +0 -0
  181. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/rungs3.out +0 -0
  182. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/trend.out +0 -0
  183. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/weakex1.out +0 -0
  184. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/weakex2.out +0 -0
  185. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/wxfix.out +0 -0
  186. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/wxrow.out +0 -0
  187. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xar0.out +0 -0
  188. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xarma.out +0 -0
  189. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xarma1.out +0 -0
  190. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xdet.out +0 -0
  191. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xlink.out +0 -0
  192. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xmon.out +0 -0
  193. {drvec-0.1.0 → drvec-0.1.2}/tests/data/oracle/xsys.out +0 -0
  194. {drvec-0.1.0 → drvec-0.1.2}/tests/oracle.py +0 -0
  195. {drvec-0.1.0 → drvec-0.1.2}/tests/test_accessors.py +0 -0
  196. {drvec-0.1.0 → drvec-0.1.2}/tests/test_cli.py +0 -0
  197. {drvec-0.1.0 → drvec-0.1.2}/tests/test_e1.py +0 -0
  198. {drvec-0.1.0 → drvec-0.1.2}/tests/test_fdhess.py +0 -0
  199. {drvec-0.1.0 → drvec-0.1.2}/tests/test_fit_case1.py +0 -0
  200. {drvec-0.1.0 → drvec-0.1.2}/tests/test_forecast.py +0 -0
  201. {drvec-0.1.0 → drvec-0.1.2}/tests/test_gate.py +0 -0
  202. {drvec-0.1.0 → drvec-0.1.2}/tests/test_johansen.py +0 -0
  203. {drvec-0.1.0 → drvec-0.1.2}/tests/test_levels.py +0 -0
  204. {drvec-0.1.0 → drvec-0.1.2}/tests/test_loglik.py +0 -0
  205. {drvec-0.1.0 → drvec-0.1.2}/tests/test_m5.py +0 -0
  206. {drvec-0.1.0 → drvec-0.1.2}/tests/test_multistart.py +0 -0
  207. {drvec-0.1.0 → drvec-0.1.2}/tests/test_options.py +0 -0
  208. {drvec-0.1.0 → drvec-0.1.2}/tests/test_parallel.py +0 -0
  209. {drvec-0.1.0 → drvec-0.1.2}/tests/test_rank.py +0 -0
  210. {drvec-0.1.0 → drvec-0.1.2}/tests/test_restrictions.py +0 -0
  211. {drvec-0.1.0 → drvec-0.1.2}/tests/test_rng.py +0 -0
  212. {drvec-0.1.0 → drvec-0.1.2}/tests/test_rungs.py +0 -0
  213. {drvec-0.1.0 → drvec-0.1.2}/tests/test_trajectory.py +0 -0
  214. {drvec-0.1.0 → drvec-0.1.2}/tests/test_vendored.py +0 -0
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 — 2026-11-15
4
+
5
+ - **Files that do not share one rescaling factor are warned of, as in the C.**
6
+ The system is built in w = refactor·BoxCox(z) units, so with `.pre` files of
7
+ different factors each entry of B2 is its z-unit value times
8
+ refactor_i / refactor_(Y1 block): beta printed -0.009955 for a relation that
9
+ is (1, -0.9955). drvec C says so on stderr; the port said nothing
10
+ (`bugs/py-pre-mixed-refactors-silent`). `read_pre` now raises a
11
+ `RuntimeWarning` with the C's words (`drvec.data.MIXED_REFACTORS`).
12
+
13
+ ## 0.1.1 — 2026-11-14
14
+
15
+ **macOS wheels for macOS 11, on Apple silicon and Intel.** The macOS wheels
16
+ are `macosx_11_0`, for arm64 and now also x86_64, the same floor as
17
+ atsw-gui's .dmg: GitHub retired the macos-14 runner on 2 November 2026, and
18
+ they are built on macos-15 (arm64) and macos-15-intel with
19
+ `MACOSX_DEPLOYMENT_TARGET=11.0`, with GSL 2.7.1 compiled from source for 11.0.
20
+ `tools/check_macos_minos.py` stops the workflow if any binary in a wheel asks
21
+ for a newer macOS than its tag. Until now the only macOS wheel was
22
+ `macosx_14_0_arm64`: an Intel Mac, or one before macOS 14, got the pure wheel,
23
+ and the bootstraps ran in Python instead of on drvec C. The code does not
24
+ change.
25
+
26
+ - **The tests measure whether they can demand the oracle's bytes**
27
+ (`bugs/py-tests-exact-gsl-v3`, `bugs/py-tests-exact-libc`). On Linux
28
+ x86_64 the suite compared byte for byte, assuming the oracle's trajectory;
29
+ with Ubuntu 26.04's amd64v3 GSL, another glibc (Rocky 9, AlmaLinux 8) or
30
+ musl (Alpine) it does not hold. `tests/conftest.py` now probes it (the port
31
+ must write e1fit, e1fdh and e1seas as the oracle does, and drvec C proute):
32
+ if the bytes match it compares bytes, otherwise it uses the tolerance it
33
+ uses off Linux. `DRVEC_REQUIRE_EXACT=1` demands the bytes instead of
34
+ measuring them, in tests.yml's reference job, now on ubuntu-24.04, the
35
+ oracle's Ubuntu. Outside the exact tier, cprq's r = 0 row only checks the
36
+ number of parameters: which start wins depends on the trajectory of drvec
37
+ C's optimiser, which the port reproduces.
38
+ - **Repros for two drvec C defects the port inherits** (atsw-gui BUG-66,
39
+ `-estwin` dates the sample from the wrong observation, and BUG-67, the
40
+ `-fdhess` standard errors are not determined to the digits printed):
41
+ `bugs/drvec-c-estwin-date` and `bugs/drvec-c-fdhess-step`, which exit 1
42
+ while open.
43
+
3
44
  ## 0.1.0 — 2026-10-28
4
45
 
5
46
  **The first release: the Python port of drvec C 0.13**, the VARMA-VEC of the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drvec
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: VARMA-VEC cointegration models by exact maximum likelihood (Mauricio 2006): rank tests with a parametric bootstrap, restrictions, forecasts and impulse responses. The Python port of the ATSW suite's drvec, on drvarma's exact VARMA likelihood and fue's univariate models
5
5
  Author-email: "David E. Guerrero" <davidesg@ucm.es>
6
6
  License-Expression: GPL-2.0-or-later
@@ -149,7 +149,7 @@ Two things make it affordable, and neither changes a number:
149
149
  ```python
150
150
  rt = drvec.rank_test(pre, p=2, q=0, case=2, bootstrap=999, boot_path="mm.boot",
151
151
  progress=lambda b, rep: print(rep.h0, b, rep.status))
152
- print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.0
152
+ print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.1
153
153
  ```
154
154
 
155
155
  `seed=` gives another stream for a Monte Carlo check (always in Python: the
@@ -115,7 +115,7 @@ Two things make it affordable, and neither changes a number:
115
115
  ```python
116
116
  rt = drvec.rank_test(pre, p=2, q=0, case=2, bootstrap=999, boot_path="mm.boot",
117
117
  progress=lambda b, rep: print(rep.h0, b, rep.status))
118
- print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.0
118
+ print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.1
119
119
  ```
120
120
 
121
121
  `seed=` gives another stream for a Monte Carlo check (always in Python: the
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "drvec"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "VARMA-VEC cointegration models by exact maximum likelihood (Mauricio 2006): rank tests with a parametric bootstrap, restrictions, forecasts and impulse responses. The Python port of the ATSW suite's drvec, on drvarma's exact VARMA likelihood and fue's univariate models"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -48,6 +48,14 @@ from dataclasses import dataclass, field
48
48
  import numpy as np
49
49
 
50
50
 
51
+ #: The C's words (drvec.c), for .pre files that do not share one factor.
52
+ MIXED_REFACTORS = (
53
+ "the .pre files do not share one refactor. The system is built in "
54
+ "w = refactor*BoxCox(z) units, as in drtran, so each entry of B2 is its "
55
+ "z-unit value times refactor_i / refactor_(Y1 block). Compare fits on Pi, "
56
+ "which the normalisation does not touch.")
57
+
58
+
51
59
  def abs_period(year, sub, freq):
52
60
  """drvec.c:6768: one index on a common calendar."""
53
61
  if freq <= 1:
@@ -287,6 +295,14 @@ def read_pre(files):
287
295
  _phi, _theta, _mu, z = levels_cast(model)
288
296
  dets.append((model, off) if model.interventions else None)
289
297
  raw[:, i] = z[off:off + n]
298
+ # As the C (drvec.c, after reading the files): the system is built in
299
+ # w = refactor*BoxCox(z) units, so files that do not share one factor
300
+ # leave B2 in units nobody reads. The C says it on stderr; here it is a
301
+ # warning (bugs/py-pre-mixed-refactors-silent).
302
+ r1 = refs[0] if refs[0] != 0.0 else 1.0
303
+ if any(abs((r if r != 0.0 else 1.0) - r1) > 1.0e-9 * abs(r1) for r in refs[1:]):
304
+ import warnings
305
+ warnings.warn(MIXED_REFACTORS, RuntimeWarning, stacklevel=2)
290
306
  if freq0 <= 1:
291
307
  start = (first, 1)
292
308
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drvec
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: VARMA-VEC cointegration models by exact maximum likelihood (Mauricio 2006): rank tests with a parametric bootstrap, restrictions, forecasts and impulse responses. The Python port of the ATSW suite's drvec, on drvarma's exact VARMA likelihood and fue's univariate models
5
5
  Author-email: "David E. Guerrero" <davidesg@ucm.es>
6
6
  License-Expression: GPL-2.0-or-later
@@ -149,7 +149,7 @@ Two things make it affordable, and neither changes a number:
149
149
  ```python
150
150
  rt = drvec.rank_test(pre, p=2, q=0, case=2, bootstrap=999, boot_path="mm.boot",
151
151
  progress=lambda b, rep: print(rep.h0, b, rep.status))
152
- print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.0
152
+ print(rt.provenance.engine, rt.provenance.version) # c 0.13, or python 0.1.1
153
153
  ```
154
154
 
155
155
  `seed=` gives another stream for a Monte Carlo check (always in Python: the
@@ -75,6 +75,7 @@ tests/test_johansen.py
75
75
  tests/test_levels.py
76
76
  tests/test_loglik.py
77
77
  tests/test_m5.py
78
+ tests/test_mixed_refactors.py
78
79
  tests/test_multistart.py
79
80
  tests/test_options.py
80
81
  tests/test_parallel.py
@@ -10,7 +10,8 @@ compiled AS 311 rounds differently, and Windows' libm moves the generator's
10
10
  Box-Muller in the last ulp -- and the optimiser's trajectory amplifies them on
11
11
  a flat likelihood (case 1 sits on the MA invertibility wall). So:
12
12
 
13
- * EXACT (Linux x86_64): every test as written, bit for bit and byte for byte.
13
+ * EXACT (Linux x86_64, MEASURED to reproduce the oracle's bytes: below):
14
+ every test as written, bit for bit and byte for byte.
14
15
  * elsewhere, the same tests with the TOLERANCE TIER below, and the tests that
15
16
  replay single trajectories (start by start, call by call) skipped as fragile
16
17
  off the oracle's platform. What must still agree everywhere is every
@@ -44,7 +45,86 @@ FIXTURES = os.path.join(DATA, "fixtures")
44
45
  PRE = [os.path.join(FIXTURES, "mmpre.muskrat.pre"), os.path.join(FIXTURES, "mmpre.mink.pre")]
45
46
  E1 = [os.path.join(FIXTURES, f"e1{n}.pre") for n in ("invest", "income", "cons")]
46
47
 
47
- EXACT = sys.platform == "linux" and platform.machine() in ("x86_64", "AMD64")
48
+ PLATFORM = sys.platform == "linux" and platform.machine() in ("x86_64", "AMD64")
49
+
50
+ # Linux x86_64 is the oracle's platform, but not every Linux x86_64 reproduces
51
+ # its bytes: they are also those of the GSL the oracle runs on (2.7.1, built
52
+ # for baseline x86-64). Ubuntu 26.04's apt GSL is built for x86-64-v3 (FMA,
53
+ # AVX2), and with it drvarma's eigensolver and a drvec C linked against it
54
+ # move in the 12th digit: 60 byte comparisons failed, every decision and every
55
+ # tolerance held (bugs/py-tests-exact-gsl-v3). So EXACT is measured, not
56
+ # assumed: the port must write the oracle's e1fit.out byte for byte (one fit,
57
+ # about a second; e1fit is among the files that move with that GSL; and two
58
+ # more for the libc, below), and a
59
+ # drvec C must write the oracle's proute.out (c_exact below). Where it does
60
+ # not, the suite runs its tolerance tier, as off Linux x86_64.
61
+ #
62
+ # The libc moves them too (bugs/py-tests-exact-libc): glibc 2.28 (AlmaLinux 8)
63
+ # and musl (Alpine) move e1fit and the rest; glibc 2.34 (Rocky 9) writes e1fit
64
+ # as the oracle does, but not the Pi eigenvalues e1fdh and e1seas print (the
65
+ # two zero eigenvalues of a rank-1 Pi on three series come out as -0.000000,
66
+ # or in another order). So the probe is those three fits, about 5 s more.
67
+ #
68
+ # DRVEC_REQUIRE_EXACT=1 turns the measurement off and asserts the oracle's
69
+ # bytes on Linux x86_64, as before: CI's reference job (tests.yml,
70
+ # ubuntu-24.04, the oracle's own Ubuntu) sets it, so a regression that moves
71
+ # the bytes there fails instead of falling into the tolerance tier.
72
+ REQUIRE_EXACT = os.environ.get("DRVEC_REQUIRE_EXACT", "").strip() == "1"
73
+
74
+
75
+ E1S = [os.path.join(FIXTURES, f"e1seas.{n}.pre") for n in ("invest", "income", "cons")]
76
+ _PROBES = {"e1fit": (E1, (2, 1, 1), {}),
77
+ "e1fdh": (E1, (2, 0, 1), dict(fdhess=True)),
78
+ "e1seas": (E1S, (2, 0, 1), {})}
79
+
80
+
81
+ def _port_writes_the_oracle():
82
+ from oracle import golden_filter, out_text # needs DATA, defined above
83
+ import drvec
84
+ try:
85
+ for label, (files, (p, q, r), kw) in _PROBES.items():
86
+ res = drvec.fit(files, p, q, r, case=2, engine="python", **kw)
87
+ if golden_filter(res.out_text(label)) != golden_filter(out_text(label + ".out")):
88
+ return False
89
+ return True
90
+ except Exception: # noqa: BLE001
91
+ return False
92
+
93
+
94
+ PORT_EXACT = PLATFORM and (REQUIRE_EXACT or _port_writes_the_oracle())
95
+ EXACT = PORT_EXACT
96
+
97
+ _C_EXACT = {}
98
+
99
+
100
+ def c_exact(path):
101
+ """Does the drvec C at PATH write the oracle's bytes? Linux x86_64 and,
102
+ unless DRVEC_REQUIRE_EXACT=1, measured on proute (one fit, well under a
103
+ second). Cached per binary."""
104
+ if not PLATFORM or not path:
105
+ return False
106
+ if REQUIRE_EXACT:
107
+ return True
108
+ if path not in _C_EXACT:
109
+ import re
110
+ import shutil
111
+ import subprocess
112
+ import tempfile
113
+ from oracle import golden_filter, out_text
114
+ ver = re.compile(r"(?i)\bdrvec 0\.1[23]\b")
115
+ norm = lambda t: ver.sub("DRVEC <v>", golden_filter(t)) # noqa: E731
116
+ with tempfile.TemporaryDirectory() as d:
117
+ for f in ("mmpre.muskrat.pre", "mmpre.mink.pre"):
118
+ shutil.copy(os.path.join(FIXTURES, f), d)
119
+ try:
120
+ cp = subprocess.run([path, "mmpre.muskrat.pre", "mmpre.mink.pre", "2", "1",
121
+ "1", "-mean", "-case", "2", "-name", "proute"],
122
+ cwd=d, capture_output=True, text=True, timeout=120)
123
+ mine = open(os.path.join(d, "proute.out")).read() if cp.returncode == 0 else ""
124
+ except (OSError, subprocess.SubprocessError):
125
+ mine = ""
126
+ _C_EXACT[path] = bool(mine) and norm(mine) == norm(out_text("proute.out"))
127
+ return _C_EXACT[path]
48
128
 
49
129
  # The C solves Johansen's eigenproblem and the eigenvalues it PRINTS (Pi's, the
50
130
  # operator roots) with GSL; the port calls the same GSL from drvarma's compiled
@@ -6,7 +6,8 @@ built from the vendored sources (csrc/, tests/test_vendored.py) by setup.py.
6
6
  it these tests skip when the package carries none (the pure wheel).
7
7
  * A small bootstrap goes through it: c_engine finds the bundled binary when
8
8
  DRVEC_BIN is unset, and the result's provenance says so.
9
- * On Linux x86_64, the oracle's platform, it IS the oracle: run on the oracle's
9
+ * On Linux x86_64, the oracle's platform, and linked against the oracle's GSL
10
+ (conftest.c_exact), it IS the oracle: run on the oracle's
10
11
  commands (tests/data/oracle/SOURCE), its .out, .boot, .forecast, .recursive
11
12
  and .irfboot equal the oracle's files byte for byte, after golden.sh's filter
12
13
  (the version banners and /tmp paths) -- the binary built here and the one
@@ -19,7 +20,7 @@ import subprocess
19
20
 
20
21
  import pytest
21
22
 
22
- from conftest import E1, EXACT, FIXTURES, PRE
23
+ from conftest import E1, FIXTURES, PRE, c_exact
23
24
  from oracle import golden_filter, out_text
24
25
 
25
26
  import drvec
@@ -107,7 +108,9 @@ def _norm(text):
107
108
 
108
109
 
109
110
  @needs_bundled
110
- @pytest.mark.skipif(not EXACT, reason="byte identity with the oracle is Linux x86_64's")
111
+ @pytest.mark.skipif(not c_exact(BUNDLED), reason=(
112
+ "byte identity with the oracle is Linux x86_64's, with the oracle's GSL "
113
+ "(conftest.c_exact: this binary does not write proute.out's bytes)"))
111
114
  @pytest.mark.parametrize("label", [pytest.param(k, marks=pytest.mark.slow) if k == "e1boot"
112
115
  else k for k in ORACLE])
113
116
  def test_the_bundled_binary_is_the_oracle(label, tmp_path):
@@ -20,7 +20,7 @@ import sys
20
20
 
21
21
  import pytest
22
22
 
23
- from conftest import E1, EXACT, FIXTURES, PRE, STRICT
23
+ from conftest import E1, EXACT, FIXTURES, PRE, STRICT, c_exact
24
24
  from oracle import golden_filter, out_text
25
25
 
26
26
  import drvec
@@ -228,8 +228,9 @@ def test_rank_c_and_python_are_the_same_bytes(label, the_c, tmp_path):
228
228
  c_out = open(tmp_path / "drvecjob.out").read()
229
229
  c_boot = open(tmp_path / "drvecjob.boot").read()
230
230
  assert _tail(tc.boot_text()) == _tail(c_boot)
231
- if not EXACT:
232
- # another platform's C: the same decisions, its own bits
231
+ if not (EXACT and c_exact(the_c)):
232
+ # another platform's C, or the port's or the C's GSL is not the
233
+ # oracle's: the same decisions, their own bits
233
234
  assert [r.status for b in tc.bootstraps for r in b.reps] == \
234
235
  [r.status for b in tp.bootstraps for r in b.reps]
235
236
  return
@@ -256,7 +257,7 @@ def test_irfboot_c_and_python_are_the_same_bytes(the_c, tmp_path):
256
257
  assert rc.irfboot.nok == rp.irfboot.nok == 40
257
258
  bc, bp = rc.irf_bands(), rp.irf_bands()
258
259
  assert abs(bc.irf_pct[95.0] - bp.irf_pct[95.0]).max() < 1e-7
259
- if not EXACT:
260
+ if not (EXACT and c_exact(the_c)):
260
261
  return
261
262
  assert rc.out_text("irfboot") == rp.out_text("irfboot")
262
263
  assert rc.irfboot_text("irfboot") == rp.irfboot_text("irfboot")
@@ -0,0 +1,49 @@
1
+ """As the C: .pre files that do not share one rescaling factor are warned of
2
+ (bugs/py-pre-mixed-refactors-silent)."""
3
+ import warnings
4
+
5
+ import numpy as np
6
+ import pytest
7
+
8
+ fue = pytest.importorskip("fue")
9
+
10
+ from drvec.data import MIXED_REFACTORS, read_pre
11
+
12
+
13
+ def _pre(tmp_path, name, y, factor):
14
+ ts = fue.TimeSeries(list(map(float, y)), freq=12, start=(2000, 1), name=name)
15
+ m = fue.Model(ts, d=1, D=0, boxlam=0.0, ar=[[0.1]], ar_free=[[True]],
16
+ refactor=float(factor))
17
+ m.fit()
18
+ p = tmp_path / f"{name}_{factor:g}.pre"
19
+ m.write_pre(str(p))
20
+ return str(p)
21
+
22
+
23
+ @pytest.fixture(scope="module")
24
+ def series():
25
+ rng = np.random.default_rng(8)
26
+ c = np.cumsum(rng.normal(0, 0.01, 120))
27
+ u = np.zeros(120)
28
+ for t in range(1, 120):
29
+ u[t] = 0.7 * u[t - 1] + rng.normal(0, 0.004)
30
+ return 120 * np.exp(c + u), 100 * np.exp(c)
31
+
32
+
33
+ def _avisos(files):
34
+ with warnings.catch_warnings(record=True) as w:
35
+ warnings.simplefilter("always")
36
+ read_pre(files)
37
+ return [str(x.message) for x in w if "refactor" in str(x.message)]
38
+
39
+
40
+ def test_mixed_factors_are_warned_of(tmp_path, series):
41
+ y, x = series
42
+ got = _avisos([_pre(tmp_path, "Y", y, 100), _pre(tmp_path, "X", x, 1)])
43
+ assert got == [MIXED_REFACTORS]
44
+
45
+
46
+ def test_a_common_factor_is_silent(tmp_path, series):
47
+ y, x = series
48
+ assert _avisos([_pre(tmp_path, "Y", y, 100), _pre(tmp_path, "X", x, 100)]) == []
49
+ assert _avisos([_pre(tmp_path, "Y", y, 1), _pre(tmp_path, "X", x, 1)]) == []
@@ -64,9 +64,18 @@ def test_ranks_and_logl(label):
64
64
  # gradient. Off the oracle's platform it stops ~1e-3 further along the
65
65
  # ridge (CI run 38912495044, macOS and Windows), as E1 does (TODO.md):
66
66
  # there the rank table's shape and the logL to 1e-2, not the point.
67
+ # At r = 0 its WINNER is trajectory-dependent off the oracle's platform
68
+ # (bugs/py-tests-exact-libc): the ladder's last rung ends ~4e-3 in logL
69
+ # from the oracle's (1.6009 for 1.6047), and from there the seed start
70
+ # stops on the step criterion after 2 iterations at -45.59 instead of
71
+ # climbing to 1.8879 in 28; the cold start (-6.30) wins. Seen on AlmaLinux
72
+ # 8 (glibc 2.28: -6.3016) and Alpine (musl: 1.8396). It is the C's own
73
+ # optimiser, which the port replays, not a port defect: there, npar only.
67
74
  tol = 5.01e-5 + (0 if EXACT else 1e-2 if label == "cprq" else TOL_LL)
68
75
  for r, (npar, ll) in rows.items():
69
76
  assert t.npar[r] == npar
77
+ if label == "cprq" and r == 0 and not EXACT:
78
+ continue
70
79
  assert abs(t.ll[r] - ll) <= tol
71
80
  # case 3's tables are not tabulated: no asymptotic verdict, everywhere
72
81
  assert t.critical_values(0) is None and t.verdict(0) is None
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes