Skip to content

Commit bf5a064

Browse files
committed
routine updates
1 parent 4f70c1e commit bf5a064

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

configs/nikon_d3x.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module_enable_status:
1+
module_enable_status: # do NOT modify modules order
22
dpc: True
33
blc: True
44
aaf: True

configs/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module_enable_status:
1+
module_enable_status: # do NOT modify modules order
22
dpc: True
33
blc: True
44
aaf: True

modules/csc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77
import numpy as np
88

9-
from .basic_module import BasicModule
9+
from .basic_module import BasicModule, register_dependent_modules
1010

1111

12+
@register_dependent_modules('gac')
1213
class CSC(BasicModule):
1314
def __init__(self, cfg):
1415
super().__init__(cfg)

modules/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def crop(array, crops):
105105
else:
106106
top_crop = bottom_crop = left_crop = right_crop = crops
107107

108-
height, width = array.shape
108+
height, width = array.shape[:2]
109109
return array[top_crop: height - bottom_crop, left_crop: width - right_crop, ...]
110110

111111

0 commit comments

Comments
 (0)