Skip to content

Commit

Permalink
Fix a bug in the way peaks are named from ccpn peak list files
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouvignies committed Jun 12, 2024
1 parent 07d4610 commit 6a1da41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peakfit/peaklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from io import StringIO
from pathlib import Path

import numpy as np
import pandas as pd

from peakfit.peak import Peak, create_peak
Expand Down Expand Up @@ -55,6 +56,7 @@ def read_sparky_list(
return _create_peak_list(peaks, spectra, shape_names)


@np.vectorize
def _make_names(f1name: str, f2name: str, peak_id: int) -> str:
"""Create a peak name from the indirect and direct dimension names."""
if not isinstance(f1name, str) and not isinstance(f2name, str):
Expand Down

0 comments on commit 6a1da41

Please sign in to comment.