braph-software / BRAPH-2

BRAPH 2.0 is a comprehensive software package for the analysis and visualization of brain connectivity data, offering flexible customization, rich visualization capabilities, and a platform for collaboration in neuroscience research.
http://braph.org
Other
34 stars 12 forks source link

Fix for unit-test (out-of-memory) #1761

Closed c-yuwei closed 20 hours ago

c-yuwei commented 21 hours ago

This PR fixes the out-of-memory issue encountered during unit testing, as reported in the issue.

Issue Details

The out-of-memory error occurs on some computers with lower memory capacity (e.g., 12 GB).
The error is shown following, referring to the issue.

Running test_AnalyzeEnsemble_CON_BUD
.......... .
================================================================================
<strong>Error occurred in test_AnalyzeEnsemble_CON_BUD/Test12_Example and it did not run to completion.</strong>
    ---------
    Error ID:
    ---------
    'MATLAB:Deserialize:OutOfMemory'
    --------------
    Error Details:
    --------------
    Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('ComparisonEnsemble/calculateValue')" style="font-weight:bold">ComparisonEnsemble/calculateValue</a>
    Out of Memory during deserialization

Solution

This PR reduces the amount of simulated data used in the tests, preventing the error on lower-memory systems while maintaining the quality of the feasibility tests.
This PR has passed unit-test, as report in the issue. Screenshot 2024-11-25 220634