Skip to content

Commit

Permalink
Added doc string to merge_order
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Aug 15, 2023
1 parent d864b09 commit 5d4ff4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion biothings/hub/databuild/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,9 @@ def get_mapper_for_source(self, src_name, init=True):
raise BuilderException("Found mapper named '%s' but no mapper associated" % mapper_name)

def merge_order(self, other_sources):
# Optional method to specify the order in which sources should be merged
"""Optionally we can override this method to customize the order in which sources should be merged.
Default as sorted by name.
"""
return sorted(other_sources)

async def merge_sources(self, source_names, steps=("merge", "post"), batch_size=100000, ids=None, job_manager=None):
Expand Down

0 comments on commit 5d4ff4d

Please sign in to comment.