Skip to content
Snippets Groups Projects
Commit 2a5d7be6 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Forbid msa if breakpoint exceeds nJ

parent 567855fd
No related branches found
No related tags found
No related merge requests found
Release 2.3.3c:
- Bug fix:
- msa: forbid breakpoints that exceed nJ
Release 2.3.3b of 12jan16:
- Bugfix (plot::determineYrange was broken)
- Further refactoring: namespaces -> singleton classes SMem, SFSel
- Bug fix:
- plot::determineYrange was broken
- Refactoring:
- namespaces -> singleton classes SMem, SFSel
Release 2.3.3a of 7jan16:
......
......@@ -476,6 +476,9 @@ void NManip::slices_rebin()
// JSel.evaluate( 0, fin->nJ()-1 );
if ( JSel.size()<1 || JSel[0]!=0 )
throw S("spectrum selection must contain 0");
if ( JSel.back()>= fin->nJ() )
throw "Invalid breakpoint "+S(JSel.back())+": file "+S(fiter.k())+
" has only "+S(fin->nJ())+" slices";
fout->log_action("msa " + triv::indices_to_s(JSel));
for ( int iv=0; iv<JSel.size(); iv++ ) {
int ji = JSel[iv];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment