Skip to content
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

Small fix in getEvents.py #280

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

Conversation

marthaisabelhilton
Copy link
Contributor

No description provided.

@marthaisabelhilton marthaisabelhilton changed the title WIP: Small fix in getEvents.py Small fix in getEvents.py Nov 22, 2021
@marthaisabelhilton
Copy link
Contributor Author

Hello, this script wasn't working for me out of the box so I made a small change. Can someone please check and merge?
Many thanks.

@@ -94,7 +94,7 @@ if __name__ == '__main__':
files = FILES[:n_files]
for f in files:
print('Getting file {0}.'.format(f))
call('dirac-dms-get-file {0}'.format(f), shell=True)
call('lb-dirac dirac-dms-get-file LFN:{0}'.format(f), shell=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, Martha! Thanks for looking into the lesson! I think if you do this, then the following lb-dirac python getEntries.py [n] command will not work. Also LFN: or no LFN: would depend on the names you provide in the script. I would keep without LFN:, since the .DST.py file that students download during the previous bkk lesson has string with LFN: as part of the name.

The normal code works for me now.

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.

None yet

2 participants