Skip to content

Commit 227ed21

Browse files
authored
Update nmr_preprocess.py
1 parent 7c8bb90 commit 227ed21

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

metbit/nmr_preprocess.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,12 @@ def __init__(self, data_path: str, bin_size: float = 0.0003,
277277
def get_data(self, flip_data=True):
278278
print("[DEBUG] get_data() called")
279279
nmr_data = self.nmr_data.sort_index(inplace=True)
280+
data = pd.DataFrame(nmr_data)
280281
if flip_data:
281-
nmr_data = nmr_data.iloc[:, ::-1]
282+
data = data.iloc[:, ::-1]
282283
else:
283-
nmr_data = nmr_data
284-
return nmr_data
284+
data = data
285+
return data
285286

286287
def get_ppm(self):
287288
print("[DEBUG] get_ppm() called")

0 commit comments

Comments
 (0)