def has_time(dataset):
try:<EOL><INDENT>return len(dataset.dimensions['<STR_LIT:time>']) > <NUM_LIT:0><EOL><DEDENT>except KeyError:<EOL><INDENT>return False<EOL><DEDENT>
Check netCDF files time dimension for emptiness. This likely
indicates the run did not complete.

Args:
    dataset: An open, readable netcdf file

Returns:
    a boolean indicating if the time dimension is set correctly