Skip to content
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

Merged
merged 2 commits into from Jan 20, 2017
Merged

Conversation

SimonKrughoff
Copy link
Contributor

No description provided.

Copy link
Contributor

@PaulPrice PaulPrice left a 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"
Copy link
Contributor

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?

Copy link
Contributor Author

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)
Copy link
Contributor

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)?

Copy link
Contributor Author

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.

Copy link
Member

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 😉

@SimonKrughoff SimonKrughoff merged commit d3ca5ad into master Jan 20, 2017
@ktlim ktlim deleted the tickets/DM-9041 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants