oafuncs 0.0.98.47__py3-none-any.whl → 0.0.98.48__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oafuncs/oa_linux.py +10 -5
 - {oafuncs-0.0.98.47.dist-info → oafuncs-0.0.98.48.dist-info}/METADATA +1 -1
 - {oafuncs-0.0.98.47.dist-info → oafuncs-0.0.98.48.dist-info}/RECORD +6 -6
 - {oafuncs-0.0.98.47.dist-info → oafuncs-0.0.98.48.dist-info}/WHEEL +0 -0
 - {oafuncs-0.0.98.47.dist-info → oafuncs-0.0.98.48.dist-info}/licenses/LICENSE.txt +0 -0
 - {oafuncs-0.0.98.47.dist-info → oafuncs-0.0.98.48.dist-info}/top_level.txt +0 -0
 
    
        oafuncs/oa_linux.py
    CHANGED
    
    | 
         @@ -54,10 +54,15 @@ def query_queue(need_node=1, queue_list =['dcu','bigmem','cpu_parallel','cpu_sin 
     | 
|
| 
       54 
54 
     | 
    
         
             
                queue_dict = get_queue_node()
         
     | 
| 
       55 
55 
     | 
    
         
             
                hs = None
         
     | 
| 
       56 
56 
     | 
    
         
             
                for my_queue in queue_list:
         
     | 
| 
       57 
     | 
    
         
            -
                    if my_queue  
     | 
| 
       58 
     | 
    
         
            -
                         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                    if my_queue == 'cpu_parallel':
         
     | 
| 
      
 58 
     | 
    
         
            +
                        for mq in ['cpu_parallel','cpu_parallel*']:
         
     | 
| 
      
 59 
     | 
    
         
            +
                            if mq in queue_dict and queue_dict[mq] >= need_node:
         
     | 
| 
      
 60 
     | 
    
         
            +
                                hs = 'cpu_parallel'
         
     | 
| 
      
 61 
     | 
    
         
            +
                                break
         
     | 
| 
      
 62 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 63 
     | 
    
         
            +
                        if my_queue in queue_dict and queue_dict[my_queue] >= need_node:
         
     | 
| 
      
 64 
     | 
    
         
            +
                            hs = my_queue
         
     | 
| 
      
 65 
     | 
    
         
            +
                            break
         
     | 
| 
       61 
66 
     | 
    
         
             
                return hs
         
     | 
| 
       62 
67 
     | 
    
         | 
| 
       63 
68 
     | 
    
         
             
            def running_jobs():
         
     | 
| 
         @@ -116,7 +121,7 @@ def submit_job(working_dir=None, script_tmp='run.slurm', script_run='run.slurm', 
     | 
|
| 
       116 
121 
     | 
    
         
             
                    while True:
         
     | 
| 
       117 
122 
     | 
    
         
             
                        if job_id in running_jobs():
         
     | 
| 
       118 
123 
     | 
    
         
             
                            print(f'Time: {datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")}')
         
     | 
| 
       119 
     | 
    
         
            -
                            print(f'任务{job_id} 
     | 
| 
      
 124 
     | 
    
         
            +
                            print(f'任务{job_id}正在队列中...')
         
     | 
| 
       120 
125 
     | 
    
         
             
                            time.sleep(60)
         
     | 
| 
       121 
126 
     | 
    
         
             
                        else:
         
     | 
| 
       122 
127 
     | 
    
         
             
                            print(f'任务{job_id}已完成!')
         
     | 
| 
         @@ -6,7 +6,7 @@ oafuncs/oa_draw.py,sha256=zal0Y3RPpN0TCGN4Gw9qLtjQdT6V0ZqpSUBFVOPL0x4,13952 
     | 
|
| 
       6 
6 
     | 
    
         
             
            oafuncs/oa_file.py,sha256=j9NOjxPOeAJsD5Zk4ODmFdVSSgr1CHVPvM1IHXy9RQA,17546
         
     | 
| 
       7 
7 
     | 
    
         
             
            oafuncs/oa_geo.py,sha256=UbzvUqgT2QP_9B7XSJRL1HDmGu0HnLC5nSP6ZrA5WH4,7177
         
     | 
| 
       8 
8 
     | 
    
         
             
            oafuncs/oa_help.py,sha256=0J5VaZX-cB0c090KxgmktQJBc0o00FsY-4wB8l5y00k,4178
         
     | 
| 
       9 
     | 
    
         
            -
            oafuncs/oa_linux.py,sha256 
     | 
| 
      
 9 
     | 
    
         
            +
            oafuncs/oa_linux.py,sha256=-Bz0frciYl2Eb8YV4QKV7Yc65ice8TuRiRXTneLqnTk,5632
         
     | 
| 
       10 
10 
     | 
    
         
             
            oafuncs/oa_nc.py,sha256=j501NlTuvrDIwNLXbMfE7nPPXdbbL7u9PGDj2l5AtnI,16277
         
     | 
| 
       11 
11 
     | 
    
         
             
            oafuncs/oa_python.py,sha256=xYMQnM0cGq9xUCtcoMpnN0LG5Rc_s94tai5nC6CNJ3E,4831
         
     | 
| 
       12 
12 
     | 
    
         
             
            oafuncs/oa_tool.py,sha256=VHx15VqpbzNlVXh0-3nJqcDgLVaECMD1FvxJ_CrV39E,8046
         
     | 
| 
         @@ -39,8 +39,8 @@ oafuncs/oa_sign/__init__.py,sha256=JSx1fcWpmNhQBvX_Bmq3xysfSkkFMrjbJASxV_V6aqE,1 
     | 
|
| 
       39 
39 
     | 
    
         
             
            oafuncs/oa_sign/meteorological.py,sha256=3MSjy7HTcvz2zsITkjUMr_0Y027Gas1LFE9pk99990k,6110
         
     | 
| 
       40 
40 
     | 
    
         
             
            oafuncs/oa_sign/ocean.py,sha256=3uYEzaq-27yVy23IQoqy-clhWu1I_fhPFBAQyT-OF4M,5562
         
     | 
| 
       41 
41 
     | 
    
         
             
            oafuncs/oa_sign/scientific.py,sha256=moIl2MEY4uitbXoD596JmXookXGQtQsS-8_1NBBTx84,4689
         
     | 
| 
       42 
     | 
    
         
            -
            oafuncs-0.0.98. 
     | 
| 
       43 
     | 
    
         
            -
            oafuncs-0.0.98. 
     | 
| 
       44 
     | 
    
         
            -
            oafuncs-0.0.98. 
     | 
| 
       45 
     | 
    
         
            -
            oafuncs-0.0.98. 
     | 
| 
       46 
     | 
    
         
            -
            oafuncs-0.0.98. 
     | 
| 
      
 42 
     | 
    
         
            +
            oafuncs-0.0.98.48.dist-info/licenses/LICENSE.txt,sha256=rMtLpVg8sKiSlwClfR9w_Dd_5WubTQgoOzE2PDFxzs4,1074
         
     | 
| 
      
 43 
     | 
    
         
            +
            oafuncs-0.0.98.48.dist-info/METADATA,sha256=SMLqsAiP_mIAI-Z8i0UadDvIrDamuY91DFM2ddyzPwA,4446
         
     | 
| 
      
 44 
     | 
    
         
            +
            oafuncs-0.0.98.48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
         
     | 
| 
      
 45 
     | 
    
         
            +
            oafuncs-0.0.98.48.dist-info/top_level.txt,sha256=bgC35QkXbN4EmPHEveg_xGIZ5i9NNPYWqtJqaKqTPsQ,8
         
     | 
| 
      
 46 
     | 
    
         
            +
            oafuncs-0.0.98.48.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |