Skip to content

Commit 4e81572

Browse files
committed
Added warning for specrum type what have not spectrum import
1 parent 62aa2ac commit 4e81572

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/graph_spectrum_plot.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,9 @@ GraphSpectrumPlot.importCurvesFromCSV = function(files) {
17791779
case SPECTRUM_TYPE.POWER_SPECTRAL_DENSITY:
17801780
this._importedPSD.importCurvesFromCSV(files);
17811781
break;
1782+
default:
1783+
console.warn(`Import not supported for spectrum type: ${this._spectrumType}`);
1784+
break;
17821785
}
17831786
};
17841787

0 commit comments

Comments
 (0)