Skip to content

Conversation

@RoryBarnes
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Test Results (py3.9 on ubuntu-22.04)

48 tests  ±0   48 ✅ ±0   1m 20s ⏱️ +5s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8de35f3. ± Comparison against base commit ae75aee.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.42%. Comparing base (6979e0b) to head (8de35f3).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   72.42%   72.42%           
=======================================
  Files           2        2           
  Lines         486      486           
=======================================
  Hits          352      352           
  Misses        134      134           
Flag Coverage Δ
ubuntu-22.04-py3.9 72.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
vspace/vspace.py 72.14% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Test Results (py3.11 on ubuntu-22.04)

48 tests   48 ✅  1m 17s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8de35f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Test Results (py3.10 on ubuntu-22.04)

48 tests   48 ✅  1m 25s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8de35f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Test Results (py3.13 on ubuntu-22.04)

48 tests   48 ✅  1m 33s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8de35f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Test Results (py3.12 on ubuntu-22.04)

48 tests   48 ✅  2m 28s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8de35f3.

♻️ This comment has been updated with latest results.

RoryBarnes and others added 4 commits December 29, 2025 20:20
…calls

Python 3.11+ has stricter error handling in subprocess.check_output() which
causes tests to fail when vspace prompts for directory override confirmation.

Solution: Add -f (force) flag to all subprocess.check_output(["vspace", ...])
calls to bypass interactive prompts in tests.

Fixed 15 test files:
- tests/FileOps/test_file_operations.py
- tests/GridMode/test_multi_parameter.py
- tests/Random/* (8 files)
- tests/Vspace_* (5 files)

This ensures tests run non-interactively on all Python versions (3.9-3.13).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Modified test files to include stderr=subprocess.STDOUT in subprocess.check_output() calls to capture error messages from vspace when tests fail on Python 3.11+. This will help diagnose the root cause of failures in:
- test_gaussian_min_cutoff
- test_gaussian_max_cutoff
- test_gaussian_both_cutoffs
- test_vspace_predefprior_npy
- test_vspace_predefprior_txt
NumPy 2.0+ (used in Python 3.11+) no longer allows implicit conversion
of 1-element arrays to scalars when assigning to array elements. This
caused ValueError: 'setting an array element with a sequence' in the
Gaussian and log-normal cutoff resampling code.

Fixed by explicitly extracting the scalar value using [0] index for all
6 instances where np.random.normal() or np.random.lognormal() with
size=1 is assigned to an array element.

This resolves test failures on Python 3.11+ for:
- test_gaussian_min_cutoff
- test_gaussian_max_cutoff
- test_gaussian_both_cutoffs
- test_vspace_predefprior_npy
- test_vspace_predefprior_txt

All 48 tests now pass on both Python 3.9 and Python 3.11+.
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.

2 participants