Skip to content

Commit b11a8e3

Browse files
underscore check for CMIP
1 parent f351a6c commit b11a8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

catalogbuilder/intakebuilder/gfdlcrawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow):
7575
continue
7676
#if our filename expectations are not met compared to the output_file_path_template in config, skip the loop. TODO revisit for statics
7777
if ("static" not in filename):
78-
if ((len(filename.split('.'))-1) != len(set_ftemplate)) and ((len(filename.split('_')>2))) and ((len(filename.split('_'))) != len(set_ftemplate)):
78+
if ((len(filename.split('.'))-1) != len(set_ftemplate)) and ((len(filename.split('_'))) > 2) and ((len(filename.split('_'))) != len(set_ftemplate)):
7979
logger.debug("Skipping "+filename)
8080
continue
8181
logger.debug(dirpath+"/"+filename)

0 commit comments

Comments
 (0)