We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I need to load several files from disk into one, how should I do it? None of the options below worked
def load_bloom_filter(directory): bloom_filter = None for filename in sorted(os.listdir(directory)): file_path = os.path.join(directory, filename) if bloom_filter is None: bloom_filter = BloomFilter.fromfile(open(file_path, 'rb')) print("len1:", len(bloom_filter)) else: bloom_filter_new = BloomFilter.fromfile(open(file_path, 'rb')) print("len2:", len(bloom_filter_new)) bloom_filter = bloom_filter_new.copy() #v1 bloom_filter |= bloom_filter_new #v2 return bloom_filter
.add does not fit because there are many elements
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
I need to load several files from disk into one, how should I do it?
None of the options below worked
.add does not fit because there are many elements
The text was updated successfully, but these errors were encountered: