• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarlNaumann / MacroStat / 26639621242
91%

Build:
DEFAULT BRANCH: master
Ran 29 May 2026 01:26PM UTC
Jobs 6
Files 105
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2026 01:19PM UTC coverage: 90.339% (-0.3%) from 90.685%
26639621242

push

github

web-flow
feat(core): support non-SFC models and variable-shape agent state (#77)

* feat(core): make Variables SFC-optional and shape-axis-aware

- get_stock/flow/index_variables and verify_sfc_info skip variables
  without an "sfc" key (non-SFC path); no opt-in flag needed
- new_state() reinterprets info[k]["sectors"] as a shape-axis list.
  Each entry is an int literal or a string resolved via
  Parameters.__getitem__ (which falls through to hyper). All entries
  resolving to positive ints → that shape tuple; otherwise legacy
  len(sectors) fallback preserves SFC-style label lists bit-identical
- delete per-step gather_timeseries() inside record_state; rely on the
  single end-of-forward() call (behavior.py:154). Recording stays
  stack-based for autograd safety; storage path is linear instead of
  quadratic in T
- compute_theoretical_steady_state now calls gather_timeseries() at
  end of method to honor the single-gather contract
- to_pandas falls back to positional integer columns when sector_map
  labels do not match the recorded tensor's column count (het-agent
  case); SFC label-match path unchanged

* test(core): add het-agent fixture and Variables shape-axis tests

- test_variables_hetagent.py: six targeted unit tests covering
  hyper-axis resolution, int literal, multi-level SFC routing via
  the level field, non-SFC skip path, legacy label-list fallback,
  and legacy multi-label sector
- test_hetagent_fixture.py: synthetic toy non-SFC heterogeneous-agent
  model with FirmCapital shape (N_firms=20,) and HouseholdWealth shape
  (N_households=100,). End-to-end test (init → simulate → to_pandas)
  and autograd-Jacobian test (decay parameter, finite non-zero grad)

* docs: update Migration Notes and SDE section for het-agent infra

- Migration Notes: record that the Variables SFC-optional and
  variable-shape abstraction landed (dispatch MacroStat_HetAgentInfra,
  branch feat/hetagent-infra). Mark-0 and Poledna ports unblocked
- Migration Notes: document... (continued)

499 of 544 branches covered (91.73%)

Branch coverage included in aggregate %.

25 of 41 new or added lines in 2 files covered. (60.98%)

3 existing lines in 1 file now uncovered.

3344 of 3710 relevant lines covered (90.13%)

5.41 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
89.28
-3.91% src/macrostat/core/variables.py

Coverage Regressions

Lines Coverage ∆ File
3
89.28
-3.91% src/macrostat/core/variables.py
Jobs
ID Job ID Ran Files Coverage
1 windows-latest-py3.13 - 26639621242.1 29 May 2026 01:28PM UTC 105
90.34
GitHub Action Run
2 windows-latest-py3.11 - 26639621242.2 29 May 2026 01:28PM UTC 105
90.34
GitHub Action Run
3 ubuntu-latest-py3.13 - 26639621242.3 29 May 2026 01:26PM UTC 105
90.34
GitHub Action Run
4 ubuntu-latest-py3.11 - 26639621242.4 29 May 2026 01:27PM UTC 105
90.34
GitHub Action Run
5 windows-latest-py3.12 - 26639621242.5 29 May 2026 01:29PM UTC 105
90.34
GitHub Action Run
6 ubuntu-latest-py3.12 - 26639621242.6 29 May 2026 01:27PM UTC 105
90.34
GitHub Action Run
Source Files on build 26639621242
  • Tree
  • List 105
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26639621242
  • 2def41b5 on github
  • Prev Build on master (#26623145945)
  • Next Build on master (#26675648006)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc