| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- _model_version = {
- 'ZZSB-CLS-Task': '2020080101',
- 'ZZSB-OD-alphaF': '2020092601',
- 'ZZSB-OD-B': '2020060801',
- 'ZZSB-OD-P': '2020020301',
- 'ZZSB-OD-F': '2020020301',
- 'ZZSB-OD-seg_B_M': '2020020301',
- 'ZZSB-OD-PS_C': '2020030101',
- 'ZZSB-OD-M_B': '2020062201',
- 'ZZSB-OD-deltaF': '2020062301',
- 'ZZSB-OD-C': '2019110501',
-
- 'BZPJ-OD-ZT_H-G_XZ_BCF': '2020112401',
- 'BZPJ-OD-ZT_H-G_XZ_DE': '2020112401',
-
- 'BZPJ-OD-ZT_H-LGJ_SL': '2020060801',
- 'BZPJ-OD-ZT_H-GJT_SL': '2020082601',
- 'BZPJ-CLS-ZT_H-GJT_SL': '202012031445',
- 'BZPJ-OD-ZT_QM-LGJ_SL': '2019123001',
- 'BZPJ-OD-ZT_QM-G': '2020061001',
- 'BZPJ-CLS-ZCG_GTG-QH': '2020080301',
- 'BZPJ-OD-ZCG_GTG-WZ': '2020020301',
- 'BZPJ-CLS-ZCG_GTG-DZ': '2020020302',
- 'BZPJ-OD-W_A': '2020063001',
- 'BZPJ-OD-W_B': '2020070101',
- 'BZPJ-OD-YBG-JZW_ABC': '2020110501',
- 'BZPJ-OD-YBG-JZW_DDS': '20201224',
- 'BZPJ-CLS-YBG-JLD': '20210202',
- 'BZPJ-CLS-YGXG-DZ_A': '20210104',
- 'BZPJ-CLS-YGXG-DZ_B': '2020093001',
- 'BZPJ-CLS-YGXG-DZ_C': '2020101601',
- 'BZPJ-CLS-YGXG-DZ_D': '2020101601',
- 'BZPJ-CLS-YGXG-DZ_E': '2020101601',
- 'Ruler-OD': '2020121001',
- 'BZPJ-OD-COAL': '20210409',
- 'BZPJ-OD-COAL_BIG': '2021040902',
- 'BZPJ-OD-HZ': '20210414',
- 'BZPJ-OD-HZ_DL': '20210415',
- 'BZPJ-OD-KLQ': '20210426small',
- 'BZPJ-CLS-ZZ': '20210207',
- 'BZPJ-CLS-ZZ': '20210207',
- }
- _task_models = {
- 'Ruler': [
- 'Ruler-OD-latest',
- ],
- 'ZZSB-CLS-Task': [
- 'ZZSB-CLS-Task-latest',
- ],
- 'ZZSB-a-alpha_f': [
- 'ZZSB-OD-alphaF-latest',
- ],
- 'ZZSB-b-p-f': [
- 'ZZSB-OD-B-latest',
- 'ZZSB-OD-P-latest',
- 'ZZSB-OD-F-latest',
- 'BZPJ-OD-W_A-latest',
- 'BZPJ-OD-W_B-latest',
- 'ZZSB-OD-seg_B_M-latest',
- ],
- 'ZZSB-f-p': [
- 'ZZSB-OD-B-latest',
- 'ZZSB-OD-P-latest',
- 'ZZSB-OD-F-latest',
- 'BZPJ-OD-W_A-latest',
- 'BZPJ-OD-W_B-latest',
- 'ZZSB-OD-seg_B_M-latest',
- ],
- 'ZZSB-p': [
- 'ZZSB-OD-F-latest',
- ],
- 'ZZSB-p-f': [
- 'ZZSB-OD-F-latest',
- 'BZPJ-OD-W_A-latest',
- 'BZPJ-OD-W_B-latest',
- 'ZZSB-OD-seg_B_M-latest',
- ],
- 'ZZSB-g_p-ps_c': [
- 'ZZSB-OD-PS_C-latest',
- ],
- 'ZZSB-m': [
- 'ZZSB-OD-M_B-latest',
- ],
- 'ZZSB-temps': [
- 'ZZSB-OD-deltaF-latest',
- 'ZZSB-OD-C-latest',
- ],
- 'BZPJ-ZT_H-G_XZ': [
- 'BZPJ-OD-ZT_H-G_XZ_BCF-latest',
- 'BZPJ-OD-ZT_H-G_XZ_DE-latest',
- ],
- 'BZPJ-ZT_H-LGJ_SL': [
- 'BZPJ-OD-ZT_H-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_E_CLS': [
- 'BZPJ-CLS-YGXG-DZ_E-latest'
- ],
- 'BZPJ-YBG-W': [
- 'BZPJ-OD-W_A-latest',
- 'BZPJ-OD-W_B-latest',
- ],
- 'BZPJ-OD-COAL': [
- 'BZPJ-OD-COAL-latest',
- 'BZPJ-OD-COAL_BIG-latest'
- ],
- 'BZPJ-OD-HZ': [
- 'BZPJ-OD-HZ-latest',
- 'BZPJ-OD-HZ_DL-latest'
- ],
- 'BZPJ-OD-KLQ': [
- 'BZPJ-OD-KLQ-latest'
- ],
- 'BZPJ-CLS-ZZ': [
- 'BZPJ-CLS-ZZ-latest'
- ],
- }
- import os
- def get_task_models(task_name):
- results = []
- if not _task_models.has_key(task_name):
- return None
- models = _task_models[task_name]
- for model in models:
- items = model.rpartition('-')
- name = items[0]
- version = items[2]
- if version == 'latest':
- if name not in _model_version:
- return None
- version = _model_version[items[0]]
-
- results.append(name + '-' + version)
- return results
|