-
Notifications
You must be signed in to change notification settings - Fork 26
Update clusterAnaScurve.py for the new environment #105
Update clusterAnaScurve.py for the new environment #105
Conversation
Can you try again using: https://gist.github.com/bdorney/5f3965bb8b26858a91ef8087137d1ec9 Example call:
For those that did crash is the reason understood? e.g. is it related to the software or for example a bad input file. Additionally your tests built the rpm after developing the festure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some clarification and follow-up testing requested. Overall good starting point.
Additionally before this is approved I'd like the instructions in the I think only the area under setup requires changes from what I've seen in this PR. |
=> Everything works as expected
It complains about the S-curve tree not being present, and the input file size is <700 bytes. Bad input file.
Couldn't get the rpm to build in my The rpm was built in Travis. I don't know if it works and have no way to test this (ie no admin access to any slc6/cc7 machine).
The updated Updating the README would require a lot more testing (incl. at P5, where I've been unable to create a working env without a hack). |
The goal was to try to setup the env by executing the script in the above gist link using the calling syntax illustrated here. This is related to the comment about changing the Can you please try again and report back on issues encountered? Showing the exact steps would be useful.
Okay so a failed scan and not a SW issue.
Can you open a separate github issue to explain the problem? Can you also try on one of the
Right, updating the twiki to include the instructions on how to do this is what's being asked.
Indeed, this is what's being asked. Did you try from the cc7 vm which has native py2.7? PM me on mattermost if you need the network info. |
I had no issue with the setup script on
|
In order to keep this discussion focused, I opened #109 about updating the README. I'll test again when the environment is set in stone. |
Copy all environment variables and activate the virtualenv in the batch job. Expected to work with Python 2.6 and 2.7, regardless of how the user's virtualenv was setup.
a2464de
to
99adad7
Compare
Force-pushed changes
Testing updateNow tested with setup instructions from the new README on
Three jobs submitted, all produced the expected output (2 fails because of bad data, 1 success with plot produced). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdorney, anything else you are still waiting on?
Will plan on putting this into a stable released version tonight
anautilities.py
Outdated
@@ -66,7 +66,7 @@ def getDirByAnaType(anaType, cName, ztrim=4): | |||
pass | |||
|
|||
# Check Paths | |||
from ..utils.wrappers import envCheck | |||
from gempython.utils.wrappers import envCheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simultaneous changes, but the others were merged in earlier, can you revert yours, or make them conform to the current develop
? (also L128, L335)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're talking about commit 2ac2945
, read again: this reverts your change (which crashed the program). This PR is based on today's develop
.
Context: anautilities.py
is installed in gempython/gemplotting/utils
, while wrappers.py
is in gempython/utils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok, then the relative import should be ...utils.wrappers
, and if that doesn't work, we'll skip the relative imports for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own education: N
leading dots are translated into N-1
../
relative to the current file ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference
They were broken in commit 2ac2945
99adad7
to
45b6c23
Compare
@bdorney I force-pushed to update the last commit, will need your approval again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approved after reviewing updated commit. Looks good still.
Description
From the commit message:
No behavior change, therefore no need to update the documentation.
Depends on #103.
Types of changes
Motivation and Context
This addresses the urgent part of #95. HTCondor and not using
afs
left for later.How Has This Been Tested?
virtualenv
with Python 2.7anaUltraScurve.py
is being calledanaUltraScurve.py
that didn't crash is produced (see below)Screenshots (if appropriate):
Checklist: