Skip to content

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
@kpedro88 kpedro88 closed this Sep 24, 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