New issue
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
Make loader agnostic to ingest name #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Some minor comments below.
The second commit has an e-mail address that GitHub doesn't recognise as belonging to you; can you fix that, please?
# test that a catalog can be loaded even with a name not used for ingestion | ||
butler = dafPersist.Butler(self.test_repo_path) | ||
config = LoadIndexedReferenceObjectsConfig() | ||
config.ref_dataset_name = "diff_ref_name" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a magic string used in multiple places. Can you consolidate them into a single variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Done.
loader = LoadIndexedReferenceObjectsTask(butler=butler, config=config) | ||
# This location is known to have objects | ||
tupl = (93.0, -90.0) | ||
cent = make_coord(*tupl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to strip out the tupl
variable and just to make_coord(93.0, -90.0)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another good point. I also consolidated so I don't define cent
twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saves me from moaning that tupl
is a terrible name for a variable 😉
ab0beec
to
d3ca5ad
Compare
No description provided.