From 8b7b923492990a523cd51a9027378ae911cbdf00 Mon Sep 17 00:00:00 2001 From: esea_info Date: Wed, 19 Apr 2023 18:26:12 +0800 Subject: [PATCH] get_save_csv_path bugfix --- awrams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awrams.py b/awrams.py index b418894..f813241 100644 --- a/awrams.py +++ b/awrams.py @@ -592,8 +592,8 @@ class AWRAMS(object): self.mydir.setBaseDir(DATA_DIR) else: self.mydir.setBaseDir(SERVER_DIR) - dir_tuple = ( "output", self.info_dict['year'],self.info_dict['month'],self.info_dict['day']) - self.mydir.setDir( t = dir_tuple) + dir_tuple = ( "output", str(self.info_dict['year']),str(self.info_dict['month']),str(self.info_dict['day'])) + self.mydir.setDir( dir_tuple) self.mydir.newDirIfNot() self.mydir.newFileIfNot( self.ymdhms+SAVE_EXT_NAME) self.output_path = self.mydir.current_filepath