MoD-ART: "Max slopes" description doesn't match what the code does

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Start from example_settings/modart_setting.json, where the slopes text is wrong, and compare it with raves.compute_MoDART, which forwards max_slopes_per_band only as the write limit and calls real_positive_search(..., num_thresh=None). For the documentation-only fix, rewrite the description so it says the decomposition stops at the T60 threshold; done means the JSON wording matches the actual search behavior. The alternative code fix needs a decision from the raves side before anyone passes num_thresh=max_slopes_per_band.

Written by the indexing model from the issue text.

Description

bug

The Max slopes setting (slopes) is described in example_settings/modart_setting.json as:

The decomposition (in each band) will stop after locating this many energy modes, even if the T60 threshold has not been reached.

The code doesn't do this. slopes is passed to raves.compute_MoDART as max_slopes_per_band, which only limits how many modes are written to MoD-ART.csv; the remaining modes go to MoD-ART extra.csv. The search itself stops only at the T60 threshold: compute_MoDART calls real_positive_search(..., num_thresh=None), so the count-based stop in real_positive_search is never used.

Effect

Users who lower Max slopes to make a run faster see no change. With the default T60 threshold (0.1 s), a large room still runs the full search: on the empty Atlas 8.340 hall (34 surfaces, 804 paths), the eigenvalue search grew to k = 512 and took 400 s locally.

Possible fixes

  1. Correct the description, e.g. "Number of energy modes per band used for the response. The decomposition stops at the T60 threshold."
  2. Pass num_thresh=max_slopes_per_band in raves.compute_MoDART, so the search stops at whichever limit comes first, as the description says. This changes results for runs with a low T60 threshold, so it needs a decision from the raves side.

Versions: modart_interface 0.2.0, raves 0.2.2

Dominant language
Python
Stars
1
Forks
7
Avg merge
2d 1h
Merged PRs (30d)
14

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from choras-org/simulation-backend

All issues in choras-org/simulation-backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.