File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,20 @@ def callback(payload):
29
29
cg = ChunkedGraph (graph_id = table_id )
30
30
PCG_CACHE [table_id ] = cg
31
31
32
- mesh_dir = cg .meta .dataset_info ["mesh" ]
33
- cv_unsharded_mesh_dir = cg .meta .dataset_info ["mesh_metadata" ]["unsharded_mesh_dir" ]
32
+ INFO_HIGH = 25
33
+ logging .basicConfig (
34
+ level = INFO_HIGH ,
35
+ format = "%(asctime)s %(message)s" ,
36
+ datefmt = "%m/%d/%Y %I:%M:%S %p" ,
37
+ )
38
+
39
+ try :
40
+ mesh_dir = cg .meta .dataset_info ["mesh" ]
41
+ cv_unsharded_mesh_dir = cg .meta .dataset_info ["mesh_metadata" ]["unsharded_mesh_dir" ]
42
+ except KeyError :
43
+ logging .warning (f"No metadata found for { cg .graph_id } ; ignoring..." )
44
+ return
45
+
34
46
mesh_path = path .join (
35
47
cg .meta .data_source .WATERSHED , mesh_dir , cv_unsharded_mesh_dir
36
48
)
@@ -43,12 +55,7 @@ def callback(payload):
43
55
except KeyError :
44
56
return
45
57
46
- INFO_HIGH = 25
47
- logging .basicConfig (
48
- level = INFO_HIGH ,
49
- format = "%(asctime)s %(message)s" ,
50
- datefmt = "%m/%d/%Y %I:%M:%S %p" ,
51
- )
58
+
52
59
logging .log (INFO_HIGH , f"remeshing { l2ids } ; graph { table_id } operation { op_id } ." )
53
60
meshgen .remeshing (
54
61
cg ,
You can’t perform that action at this time.
0 commit comments