ENH: Adds handling of Assets passed to AssetFinder as identifiers

This commit is contained in:
jfkirk
2015-06-11 16:49:23 -04:00
parent 3ee3a1226b
commit 4ef8df2fca
3 changed files with 92 additions and 16 deletions
+10
View File
@@ -263,6 +263,16 @@ AssetMetaData can not consume {obj}. MetaData must be a dict, a DataFrame, or
""".strip()
class SidAssignmentError(ZiplineError):
"""
Raised when an AssetFinder tries to build an Asset that does not have a sid
and that AssetFinder is not permitted to assign sids.
"""
msg = """
AssetFinder metadata is missing a SID for identifier '{identifier}'.
""".strip()
class NoSourceError(ZiplineError):
"""
Raised when no source is given to the pipeline