Conversation
Fix selectedWCs path in text2workspace
…-aac-model Fix selectedWCs path in text2workspace
| print("Loading operators from {fpath}".format(fpath=fpath)) | ||
| jsn = open(fpath,'r').read() | ||
| operators = json.loads(jsn) | ||
| self.alloperators = [] |
There was a problem hiding this comment.
Won't removing this case errors? Since self.alloperators is set below in a if block, it could be skipped. Plus, self.alloperators.extend(operators[sig]) is called there, but we're not initializing self.alloperators as a list.
| # if level=='err': logging.error(line.rstrip('\n')) | ||
|
|
||
| def __override_CMSSW_BASE(self): | ||
| """If CMSSW_BASE points to an /afs/ path but cwd is under /users/, |
There was a problem hiding this comment.
This is a nice function, but really people should be moving their CMSSW builds from /afs/. to /users/ and run scram b ProjectRename to fix the dependencies.
|
|
||
| print(f"CMSSW_BASE after manipulation is {CMSSW_BASE}") | ||
|
|
||
| if not (workspace.startswith("/afs/") or workspace.startswith("/users/") or workspace.startswith("/scratch365/")): |
There was a problem hiding this comment.
Should we just check for a leading / instead. I know this covers the basis on glados and lxplus, but if a file system doesn't use one of these three paths it could still cause issues.
|
|
||
| ``` | ||
| text2workspace.py combinedcard.txt -o yourworkspacename.root -P EFTFit.Fitter.AnomalousCouplingEFTNegative:analiticAnomalousCouplingEFTNegative --X-allow-no-background --for-fits --no-wrappers --X-pack-asympows --optimize-simpdf-constraints=cms --PO selectedWCs=/path/to/your/selectedWCs.txt | ||
| text2workspace.py combinedcard.txt -o yourworkspacename.root -P EFTFit.Fitter.AnomalousCouplingEFTNegative:analyticAnomalousCouplingEFTNegative --X-allow-no-background --for-fits --no-wrappers --X-pack-asympows --optimize-simpdf-constraints=cms --PO selectedWCs=/path/to/your/selectedWCs.txt |
There was a problem hiding this comment.
Should we update the README with IM?
Here are some changes to adapt
EFTFitter.pyto netapp