This website works better with JavaScript.
Home
Help
Register
Sign In
nilm
/
nilmdb
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
64
Wiki
Activity
Browse Source
misc updates
git-svn-id:
https://bucket.mit.edu/svn/nilm/nilmdb@9679
ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/bxinterval-last
Jim Paris
13 years ago
parent
b0ed5d7616
commit
5784468693
5 changed files
with
14 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
Makefile
+1
-1
nilmdb/fileinterval.py
+2
-0
test/Makefile
+8
-0
test/test-struct-pack.py
+1
-0
test/test.dat
+ 2
- 0
Makefile
View File
@@ -0,0 +1,2 @@
all:
nosetests
+ 1
- 1
nilmdb/fileinterval.py
View File
@@ -25,7 +25,7 @@ class FileInterval(Interval):
self.end_offset = end_offset
def __setattr__(self, name, value):
pass
def subset(self, start, end):
"""Return a new Interval that is a subset of this one"""
+ 2
- 0
test/Makefile
View File
@@ -0,0 +1,2 @@
all:
python test-struct-pack.py
+ 8
- 0
test/test-struct-pack.py
View File
@@ -0,0 +1,8 @@
import struct
import mmap
f = open("test.dat", "rb+")
mm = mmap.mmap(f.fileno(),3)
print len(mm)
print "first 3 bytes: " + mm[0:3];
+ 1
- 0
test/test.dat
View File
@@ -0,0 +1 @@
Write
Preview
Loading…
Cancel
Save