e7440781d39a561aeb2d168a6fae1a7b78ca7590,skbio/io/_registry.py,,get_reader,#Any#,370
Before Change
return _rw_getter("reader", fmt, *cls)
def get_writer(fmt, *cls):
Return a writer for a format.
After Change
fmt, is_compound = _normalize_format(format)
composition = _factor_format(format)
reader, original_format_order = _rw_getter("reader", fmt, *cls)
if reader is None:
return None
if not is_compound or original_format_order == composition:
return reader
// Time to generate a flip on the fly! :rimshot:
def generated_reader(fp, **kwargs):
if len(fp) != len(original_format_order):
raise ValueError("List length (%d) must be %d."
% (len(fp), len(original_format_order)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biocore/scikit-bio
Commit Name: e7440781d39a561aeb2d168a6fae1a7b78ca7590
Time: 2014-08-18
Author: ebolyen@gmail.com
File Name: skbio/io/_registry.py
Class Name:
Method Name: get_reader
Project Name: biocore/scikit-bio
Commit Name: 6c0cd9b623c4801e9fbe8ba3f9fa1708bb1ead08
Time: 2014-09-12
Author: ebolyen@gmail.com
File Name: skbio/io/_registry.py
Class Name:
Method Name: _formats_for_docs
Project Name: biocore/scikit-bio
Commit Name: e7440781d39a561aeb2d168a6fae1a7b78ca7590
Time: 2014-08-18
Author: ebolyen@gmail.com
File Name: skbio/io/_registry.py
Class Name:
Method Name: get_writer