Skip to content

mspilup check added #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

emcgrady
Copy link

No description provided.

@emcgrady emcgrady closed this Apr 29, 2025
proxy = getX509()
msPileup = requests.get(f'https://cmsweb-prod.cern.ch/ms-pileup/data/pileup?pileupName={dataset}',
cert=proxy, verify=False).json()['result']
if len(msPileup) > 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making this a requirement to run the script is an unnecessary restriction (and actually alters the nature/usage of the script). This should be a preferred option in the case of a pileup dataset, but the script should still execute if a connection to ms-pileup is not available, or if the user is asking about a non-pileup dataset.

sys.path.insert(0,full_rucio_path+'/site-packages/')

all_blocks = list(client.list_content(scope=scope, name=dataset))
print(f'Found {len(all_blocks)} for dataset {dataset}...')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this and other print() statements behind the verbose flag

@emcgrady emcgrady reopened this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants