From e079601ea4704d26defd7447ceed0b8be1f89e2f Mon Sep 17 00:00:00 2001 From: Chunxiao Li Date: Wed, 9 Jun 2021 15:18:38 +0800 Subject: [PATCH] trivial modification --- pyatmos/jb2008/spaceweather.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyatmos/jb2008/spaceweather.py b/pyatmos/jb2008/spaceweather.py index 6405418..c2dc49c 100644 --- a/pyatmos/jb2008/spaceweather.py +++ b/pyatmos/jb2008/spaceweather.py @@ -37,8 +37,8 @@ def download_sw_jb2008(direc=None): if not path.exists(direc): makedirs(direc) if not path.exists(swfile1): - desc1 = 'Downloading the space weather data {:s} from Space Environment Technologies(SET)'.format('SOLFSMY.TXT') - desc2 = 'Downloading the space weather data {:s} from Space Environment Technologies(SET)'.format('DTCFILE.TXT') + desc1 = "Downloading the space weather data '{:s}' from Space Environment Technologies(SET)".format('SOLFSMY.TXT') + desc2 = "Downloading the space weather data '{:s}' from Space Environment Technologies(SET)".format('DTCFILE.TXT') tqdm_request(url1,direc,'SOLFSMY.TXT',desc1) tqdm_request(url2,direc,'DTCFILE.TXT',desc2) else: @@ -46,12 +46,12 @@ def download_sw_jb2008(direc=None): if datetime.now() > modified_time + timedelta(days=1): remove(swfile1) remove(swfile2) - desc1 = 'Updating the space weather data {:s} from Space Environment Technologies(SET)'.format('SOLFSMY.TXT') - desc2 = 'Updating the space weather data {:s} from Space Environment Technologies(SET)'.format('DTCFILE.TXT') + desc1 = "Updating the space weather data '{:s}' from Space Environment Technologies(SET)".format('SOLFSMY.TXT') + desc2 = "Updating the space weather data '{:s}' from Space Environment Technologies(SET)".format('DTCFILE.TXT') tqdm_request(url1,direc,'SOLFSMY.TXT',desc1) tqdm_request(url2,direc,'DTCFILE.TXT',desc2) else: - print('The space weather data {0:s} and {1:s} in {2:s} is already the latest.'.format('SOLFSMY.TXT','DTCFILE.TXT',direc)) + print("The space weather data '{0:s}' and '{1:s}' in {2:s} is already the latest.".format('SOLFSMY.TXT','DTCFILE.TXT',direc)) return [swfile1,swfile2] def read_sw_jb2008(swfile): @@ -128,4 +128,4 @@ def get_sw(sw_data,t_mjd): y = sw_data2[j:j+2].flatten() DTCVAL = np.interp(t_dmjd,x,y) - return F10,F10B,S10,S10B,M10,M10B,Y10,Y10B,DTCVAL \ No newline at end of file + return F10,F10B,S10,S10B,M10,M10B,Y10,Y10B,DTCVAL