From 3a1c5dd4ccae7185a2b27ca13c2924ab8dcd278b Mon Sep 17 00:00:00 2001 From: esea_info Date: Tue, 13 Jun 2023 15:30:53 +0800 Subject: [PATCH] modified: awrams.py save dir --- awrams.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/awrams.py b/awrams.py index fac0791..7c2818e 100644 --- a/awrams.py +++ b/awrams.py @@ -519,6 +519,13 @@ class Handheld(object): def save_handheld(self, mode=0): ''' 保存到五个文件 Lsky Esky Lwater Lw Rs ''' pth = DATA_DIR + pth = pth.joinpath("output", + self.data.info_frame.year+"_"+self.data.info_frame.month+"_" + +self.data.info_frame.day+"_"+self.data.info_frame.hour+"_" + +self.data.info_frame.minute+"_"+self.data.info_frame.second + ) + if not pth.exists(): + pth.mkdir(parents=True) header = str(self.deviceid) + TOKEN + self.list2str(list(self.newWavelength)) Lsky_fpath = pth.joinpath( "Lsky"+SAVE_EXT_NAME )