Skip to content

Commit

Permalink
NOAA-GFDL#36 Insert 'UDA' as activity_id if in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristopher Rand authored and Kristopher Rand committed Oct 30, 2024
1 parent c4cc716 commit 1aedfb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions catalogbuilder/intakebuilder/gfdlcrawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow):
logger.debug(dirpath+"/"+filename)
dictInfo = {}
dictInfo = getinfo.getProject(projectdir, dictInfo)
if "/uda" in filepath:
dictInfo["activity_id"] = "UDA"
# get info from filename
#filepath = os.path.join(dirpath,filename) # 1 AR: Bugfix: this needs to join dirpath and filename to get the full path to the file
dictInfo["path"]=filepath
Expand Down

0 comments on commit 1aedfb6

Please sign in to comment.