Skip to content

Commit 0f56b78

Browse files
author
John P. Artieda
committed
correction to algorithm to include 60%
1 parent b374300 commit 0f56b78

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

SR_View_SSB/ActiveSites/ActiveSites.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ def extractSitesAboveThreshold(dataRows, percentageThreshold):
2727
for row in dataRows['data']:
2828
siteName = row[0].split(' ')[0]
2929
sitePercentage = float(row[1][0][1])
30-
if sitePercentage > percentageThreshold:
30+
if sitePercentage >= percentageThreshold:
3131
sites.append(siteName)
3232
return sites
3333

3434
oneWeekDataRows = getData(url % '168', headers={"Accept":"application/json"})
3535
threeMonthsDataRows = getData(url % '2184', headers={"Accept":"application/json"})
3636

37-
# Active Sites = SR >60% for last week OR last 3 months
37+
# Active Sites = SR >=60% for last week OR last 3 months
3838
oneWeek = extractSitesAboveThreshold(oneWeekDataRows, percentageThreshold)
3939
threeMonths = extractSitesAboveThreshold(threeMonthsDataRows, percentageThreshold)
4040
activeSites = oneWeek

SR_View_SSB/ActiveSites/Readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and that presently are in "active" status.
77

88
--- ACTIVE sites for SSB ---
99
SSB metric: 39 - Active T2s
10-
Active Sites: SR >60% last 1 week OR last 3 months
10+
Active Sites: SR >=60% last 1 week OR last 3 months
1111

1212
--- WAITING ROOM LIST for SSB ---
1313
Any site that is not in this list will be automatically moved to the Waiting Room.

SR_View_SSB/ActiveSites/sActiveSites.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fi
4444
# creating output file
4545
cat <<EOF > $outFile
4646
# SSB: metric 39 - Active T2s
47-
# Criteria: ActiveSite = SR>60% last 1 week OR last 3 months
47+
# Criteria: ActiveSite = SR>=60% last 1 week OR last 3 months
4848
# Written by: John Artieda <artiedaj@fnal.gov>
4949
# Readme:
5050
# $Read

0 commit comments

Comments
 (0)