File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def get_time_ordering_variable(self):
175175 :return: the name of the variable
176176 :rtype: str
177177 """
178- if self . mltask_settings . get ( 'time' , None ) and self .mltask_settings ['time' ]['enabled' ]:
178+ if 'time' in self . mltask_settings and self .mltask_settings ['time' ]['enabled' ]:
179179 return self .mltask_settings ['time' ]['timeVariable' ]
180180 else :
181181 warnings .warn ("Time-based ordering is disabled in the current MLTask" )
@@ -185,7 +185,7 @@ def is_time_ordering_ascending(self):
185185 :return: True if the ordering is set to be ascending with respect to the time-ordering variable
186186 :rtype: bool
187187 """
188- if self . mltask_settings . get ( 'time' , None ) and self .mltask_settings ['time' ]['enabled' ]:
188+ if 'time' in self . mltask_settings and self .mltask_settings ['time' ]['enabled' ]:
189189 return self .mltask_settings ['time' ]['ascending' ]
190190 else :
191191 warnings .warn ("Time-based ordering is disabled in the current MLTask" )
You can’t perform that action at this time.
0 commit comments