-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'run_dict' into run_dict_clib_run3
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from topcoffea.modules.get_param_from_jsons import GetParam | ||
from topcoffea.modules.paths import topcoffea_path | ||
run_dict = GetParam(topcoffea_path("params/params.json")) | ||
|
||
def is_run2(year): | ||
''' Check if a year is in Run 2 ''' | ||
return year in run_dict("Run2") | ||
|
||
|
||
def is_run3(year): | ||
''' Check if a year is in Run 3 ''' | ||
return year in run_dict("Run3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.