nmr-processing 11.5.0 → 11.5.1-pre.1699615423

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ import { Molecule } from 'openchemlib/full';
14
14
  import { NmrData1D } from 'cheminfo-types';
15
15
  import { NmrData2D } from 'cheminfo-types';
16
16
  import { NmrData2DContent } from 'cheminfo-types';
17
+ import { NmrData2DFt } from 'cheminfo-types';
17
18
  import { Nuclei } from 'gyromagnetic-ratio';
18
19
  import { OCLMolecule } from 'cheminfo-types';
19
20
  import { OptimizePeaksOptions } from 'ml-gsd';
@@ -282,13 +283,14 @@ declare type Entry1DApodizationFilter = Partial<Omit<Entry1D, 'info'>> & {
282
283
  data: Required<NmrData1D>;
283
284
  };
284
285
 
285
- declare interface Entry2D {
286
+ declare interface Entry2D<T extends NmrData2D = NmrData2D> {
286
287
  id?: string;
287
288
  zones: Zones;
288
289
  info: Record<string, any>;
290
+ customInfo?: Record<string, any>;
289
291
  originalInfo?: Record<string, any>;
290
- data: NmrData2D;
291
- originalData?: NmrData2D;
292
+ data: T;
293
+ originalData?: T;
292
294
  filters: Filter[];
293
295
  }
294
296
 
@@ -2731,12 +2733,26 @@ export declare interface PeaksToXYOptions extends OptionsSG1D {
2731
2733
 
2732
2734
  export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array>;
2733
2735
 
2736
+ declare interface PhaseCorrectionHorizontalOptions {
2737
+ ph0: number;
2738
+ ph1: number;
2739
+ }
2740
+
2734
2741
  export declare interface PhaseCorrectionParameters {
2735
2742
  ph0: number;
2736
2743
  ph1: number;
2737
2744
  absolute: boolean;
2738
2745
  }
2739
2746
 
2747
+ export declare interface PhaseCorrectionTwoDOptions {
2748
+ horizontal?: PhaseCorrectionHorizontalOptions;
2749
+ vertical?: PhaseCorrectionVerticalOptions;
2750
+ }
2751
+
2752
+ declare type PhaseCorrectionVerticalOptions = PhaseCorrectionHorizontalOptions & {
2753
+ quad?: 'imag' | 'real';
2754
+ };
2755
+
2740
2756
  export declare interface PolynomialOptions {
2741
2757
  zones: BaselineCorrectionZone[];
2742
2758
  algorithm: 'polynomial';
@@ -3761,6 +3777,8 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
3761
3777
  getZones?: boolean;
3762
3778
  }
3763
3779
 
3780
+ export declare function xyzPhaseCorrection(data: NmrData2DFt, options: PhaseCorrectionTwoDOptions): NmrData2DFt;
3781
+
3764
3782
  export declare interface ZeroFillingOptions {
3765
3783
  nbPoints?: number;
3766
3784
  factor?: number;