Skip to content
Snippets Groups Projects

Bugfix/nbi err handling

Open Matteo Vallar requested to merge bugfix/nbi-err-handling into master
2 unresolved threads

Fixing the error handling as suggested in #45.

I did not change it in all the places, and I won't do it now

Edited by Federico Felici

Merge request reports

Pipeline passed for 33714a02 on bugfix/nbi-err-handling

Test coverage 6.95% (0.00%) from 1 job
Test summary results are being parsed
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
2498 2499 nodenameeff = '\ATLAS::NB1.DATA.MODEL:POWR_NEUTRAL';
2499 2500 end
2500 2501 model_data=tdi(model_signame);
2501 if isempty(model_data.dim)
2502 if ~rem(model_data.status,2)
  • 2535 2536 % NB2
    2536 2537 nodenameeff = '\results::NB2:POWR_TCV';
    2537 2538 nb2_data_tdi = tdi(nodenameeff);
    2538 if ~isempty(nb2_data_tdi.dim) && ~ischar(nb2_data_tdi.data) && ~isempty(nb2_data_tdi.dim)
    2539 if rem(nb2_data_tdi.status,2)
    2539 2540 nbi_neutral_power_tot = nb2_data_tdi.data.*1e6; % in W
    • Note that this code is being excluded from the tests. Can we add a case to the tests that result in these lines being called?

    • Author Contributor

      I am not sure what you refer to. Why are you looking at lines that have been removed? Those lines in principle are always there

      I don't know about the tests. And I think that is another issue to open, not related to this MR

    • If you look in the 'changes' tab of the MR, you see which lines of code are being covered by the tests and which are not. We should try to have as much as possible of our code covered by tests.

    • image

      The vertical red lines indicate no test coverage

      Edited by Federico Felici
    • Please register or sign in to reply
  • Thank you @vallar I quickly reviewed it

  • Federico Felici changed the description

    changed the description

  • Please register or sign in to reply
    Loading