nmr-processing 22.25.3 → 22.25.5

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.
@@ -397,26 +397,6 @@ declare interface CalculateT1OptionsOptimization {
397
397
  */
398
398
  export declare const carbonImpurities: DatabaseNMREntry[];
399
399
 
400
- /**
401
- * Check whether integral based on its kind can be included in another operation or not.
402
- * @param integral - integral
403
- * @returns
404
- */
405
- export declare function checkIntegralKind(integral: Integral): boolean;
406
-
407
- /**
408
- * Checks for a numeric match within a certain tolerance.
409
- *
410
- * @param {number} value1
411
- * @param {number} value2
412
- * @param {number} tolerance
413
- */
414
- declare function checkMatch(value1: number, value2: number, tolerance: number): boolean;
415
-
416
- export declare function checkMultiplicity(multiplicity: string, rejected?: OneLetterMultiplet[]): boolean;
417
-
418
- declare function checkSignalKinds(range: Range_2, kinds: ReadonlySet<SignalKind>): boolean;
419
-
420
400
  export declare interface Correlation extends CorrelationAndLinkFields {
421
401
  atomType: string;
422
402
  label: Record<string, string>;
@@ -456,7 +436,7 @@ export declare namespace correlationApi {
456
436
  buildLink,
457
437
  removeLink,
458
438
  setCorrelation,
459
- checkMatch,
439
+ didMatch,
460
440
  findLinkedCorrelationsBySignalID,
461
441
  findLinksBySignalID,
462
442
  getAtomCounts,
@@ -672,6 +652,15 @@ declare function deleteFilter(datum: Entry1D, id?: string, logger?: Logger): voi
672
652
 
673
653
  declare function deleteFilter_2(datum: Entry2D, id?: string, logger?: Logger): void;
674
654
 
655
+ /**
656
+ * Checks for a numeric match within a certain tolerance.
657
+ *
658
+ * @param {number} value1
659
+ * @param {number} value2
660
+ * @param {number} tolerance
661
+ */
662
+ declare function didMatch(value1: number, value2: number, tolerance: number): boolean;
663
+
675
664
  declare class DiffusionRegression extends BaseRegression {
676
665
  coefficient: number;
677
666
  signalAbsenseDiffussion: number;
@@ -1237,6 +1226,8 @@ declare type GSDNMRPeakOptimizedID = Omit<GSDPeakOptimizedID, 'shape'> & {
1237
1226
  shape: NMRShape1D;
1238
1227
  };
1239
1228
 
1229
+ declare function hasSignalKinds(range: Range_2, kinds: ReadonlySet<SignalKind>): boolean;
1230
+
1240
1231
  declare interface HOSEPrediction {
1241
1232
  /**
1242
1233
  * In case the prediction is based on HOSE codes, this is the sphere
@@ -1255,8 +1246,22 @@ declare function isEditedHSQC(experiment: Pick<Spectrum2D, 'info'>): boolean;
1255
1246
 
1256
1247
  export declare function isEmptyMolecule(molecule: Molecule): boolean;
1257
1248
 
1249
+ /**
1250
+ * Check whether integral based on its kind can be included in another operation or not.
1251
+ * @param integral - integral
1252
+ * @returns
1253
+ */
1254
+ export declare function isIntegralSignalKind(integral: Integral): boolean;
1255
+
1258
1256
  export declare function isMolfileNotEmpty(molFile?: string): molFile is string;
1259
1257
 
1258
+ /**
1259
+ * check the input string corresponds to a composed pattern like dt or dd. it splits into indivitual patterns and use checkMultiplet function.
1260
+ * @param multiplicity - pattern name or abbreviation.
1261
+ * @param rejected - list of patterns that should not match with any pattern. e.g 'dt' as input will return false if rejected = ['t'].
1262
+ */
1263
+ export declare function isMultiplicityValid(multiplicity: string, rejected?: OneLetterMultiplet[]): boolean;
1264
+
1260
1265
  export declare function isRangeExists(range: Pick<Range_2, 'from' | 'to'>, spectrum: Entry1D, error: number): boolean;
1261
1266
 
1262
1267
  export declare function isZoneExists(zone: Pick<Zone, 'x' | 'y'>, spectrum: Entry2D, error: Zone2DError): boolean;
@@ -2272,7 +2277,7 @@ export declare interface RangeToXYOptions {
2272
2277
 
2273
2278
  export declare namespace RangeUtilities {
2274
2279
  export {
2275
- checkSignalKinds
2280
+ hasSignalKinds
2276
2281
  }
2277
2282
  }
2278
2283