Loading INAF.Apps.Uwp.SLabDataManager/ViewModels/MainViewModel.cs +1 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels { var spectraFactory = serviceProvider.GetRequiredService<SpectraFactory>(); IChartSpectrumModel chartSpectrumModel = spectraFactory.build(spectrumObj); chartSpectrumModel.Id = relatedFileId; await switchToMeasureUnitProcedureAsync(chartSpectrumModel); Loading INAF.Apps.Uwp.SLabDataManager/ViewModels/UserControlViewModels/ChartPanels/AlignmentViewModel.cs +13 −7 Original line number Diff line number Diff line Loading @@ -118,17 +118,23 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels.UserControlViewModels { try { var alignmentHelper = serviceProvider.GetRequiredService<AlignmentHelper>(); /* create the ref segment, depending on area selected by user */ alignedSpectrum.setPointsFromElements(); refSpectrum.setPointsFromElements(); /* normalize spectrum, if possible */ if (refWhiteSpectrum != null && refSpectrum != null) { multiplyByRef(ref alignedSpectrum, alignedSpectrum.Points = alignmentHelper.multiplyByRef(alignedSpectrum.Points, refWhiteMaxY, refSpectrum); refSpectrum.Points); //multiplyByRef(ref alignedSpectrum, // refWhiteMaxY, // refSpectrum); } /* create the ref segment, depending on area selected by user */ alignedSpectrum.setPointsFromElements(); var alignmentHelper = serviceProvider.GetRequiredService<AlignmentHelper>(); var separators = WavelengthSeparators.Select(x => x.CurrentValue).OrderBy(x => x); Loading Loading
INAF.Apps.Uwp.SLabDataManager/ViewModels/MainViewModel.cs +1 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,7 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels { var spectraFactory = serviceProvider.GetRequiredService<SpectraFactory>(); IChartSpectrumModel chartSpectrumModel = spectraFactory.build(spectrumObj); chartSpectrumModel.Id = relatedFileId; await switchToMeasureUnitProcedureAsync(chartSpectrumModel); Loading
INAF.Apps.Uwp.SLabDataManager/ViewModels/UserControlViewModels/ChartPanels/AlignmentViewModel.cs +13 −7 Original line number Diff line number Diff line Loading @@ -118,17 +118,23 @@ namespace INAF.Apps.Uwp.SLabDataManager.ViewModels.UserControlViewModels { try { var alignmentHelper = serviceProvider.GetRequiredService<AlignmentHelper>(); /* create the ref segment, depending on area selected by user */ alignedSpectrum.setPointsFromElements(); refSpectrum.setPointsFromElements(); /* normalize spectrum, if possible */ if (refWhiteSpectrum != null && refSpectrum != null) { multiplyByRef(ref alignedSpectrum, alignedSpectrum.Points = alignmentHelper.multiplyByRef(alignedSpectrum.Points, refWhiteMaxY, refSpectrum); refSpectrum.Points); //multiplyByRef(ref alignedSpectrum, // refWhiteMaxY, // refSpectrum); } /* create the ref segment, depending on area selected by user */ alignedSpectrum.setPointsFromElements(); var alignmentHelper = serviceProvider.GetRequiredService<AlignmentHelper>(); var separators = WavelengthSeparators.Select(x => x.CurrentValue).OrderBy(x => x); Loading