-
Notifications
You must be signed in to change notification settings - Fork 295
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
Fix weird things with space checks in some files (see #1167 #1166) #1170
Conversation
@bocajnotnef do you see anything in the code that would lead to this problem? http://lists.idyll.org/pipermail/khmer/2015-July/000736.html I'm stumped... |
I recall one of the checks was only checking the directory the script was On Tue, Jul 14, 2015, 09:53 C. Titus Brown notifications@github.com wrote:
|
I'll dig up which issue in a minute. On Tue, Jul 14, 2015, 10:23 Jake Fenton bocajnotnef@gmail.com wrote:
|
OK, could you track it down, please? thanks!
|
Issue #1166, line 120ish in kfile.py (https://github.com/dib-lab/khmer/pull/1170/files#diff-46d242f8c7f4ca46fd5c784bd24184c7R120)
We grab |
in this case a |
By my reading, that's not the problem in the email, tho? Titus Brown, ctbrown@ucdavis.edu
|
Looks to be; error is: Output from kfile on line ~130 (https://github.com/dib-lab/khmer/blob/master/khmer/kfile.py#L130):
|
Ahh, I see--He is calling norm-by-med from his |
Yep. I wonder if os.stat on a mount point returns parent fs info? Titus Brown, ctbrown@ucdavis.edu
|
It's behaving as if what I said is the problem but since he's calling norm-by-med on the mounted partition this shouldn't be happening. The only explanation I can think of is if he installed khmer to the system (or a virtualenv) and I'm ruling out that it's something to do with Could it be that |
Did some quick testing in iPython--This doesn't appear to be it. Ran the kfile space check on a file in my homedir, got:
Running the same on a file on an SD card:
I have ~70gigs free on my system partition and the SD card is 64 gigs, so those numbers look about right. |
On Tue, Jul 14, 2015 at 08:00:44AM -0700, Jake Fenton wrote:
I concur. Weird, well, I will let them know. --titus |
@ctb Updated; CR/merge? |
Ref #1169 (comment), what do you think about breaking it out like this?
in the various scripts? I definitely foresee a future where tablesize is determined from more args, but the check space function doesn't need to know that - it just needs to know the estimated size. |
+1 for that solution. |
Conflicts: ChangeLog
Ref #618. |
Also, can you take a look at #668? |
I'd need access to the HPCC (or a similar setup) to verify the behaviour On Sat, Jul 18, 2015, 13:04 C. Titus Brown notifications@github.com wrote:
|
On Sat, Jul 18, 2015 at 01:07:06PM -0700, Jake Fenton wrote:
You might first check to see what the behavior is for disks to which |
Seems to be what we'd expect--that is, it yells at you that you don't have permissions. (comments in #668) |
Yes, but it doesn't cause the same error that @mr-c saw. So it looks like there's some oddity on HPC systems (?). |
I think 'calculate_tablesize' should just take 'args', so as to accomodate things like Note that you could fix #1179 rather casually at this point, too. |
What's strange is khmer thinks there was no free space at all--that doesn't I'm wondering if not having read permissions would show up as having no Though, there isn't anything about not having read perms in the issue. On Sun, Jul 19, 2015, 08:10 C. Titus Brown notifications@github.com wrote:
|
On Sun, Jul 19, 2015 at 08:15:28AM -0700, Jake Fenton wrote:
Maybe? 'df' shows file size for things you don't have read perms to,
True. |
I'll do some testing in a bit, as well as integrating -U On Sun, Jul 19, 2015, 08:19 C. Titus Brown notifications@github.com wrote:
|
Well, that wasn't it.
it is also possible to stat the directory:
|
hey @bocajnotnef, can you also fix the
and then check this box:
|
Conflicts: ChangeLog
figured out weirdness with HPCC stuff--this should fix it. @mr-c @ctb @camillescott CR/Merge, please? |
@@ -7,7 +17,6 @@ | |||
* tests/test_normalize_by_median.py: updated/added tests for reporting. | |||
|
|||
2015-07-17 Jacob Fenton <bocajnotnef@gmail.com> | |||
|
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.
?
@ctb Updated |
Cleaned up minor slop in 4ecd60b; merging. |
BTW, @bocajnotnef, don't put the issue numbers in the pull request subject; you can't click on 'em. Better to just put them in the description somewhere, so as to link issues & PR. |
Ahh, alright. Wilco. On Tue, Jul 21, 2015 at 6:57 PM C. Titus Brown notifications@github.com
|
See #1166, #1167
Blocked by: #1169
Lightweight argparse cleanup, making space checks use the right directory instead of cwd.