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

Tickets/dm 6459 #60

Merged
merged 2 commits into from Jul 20, 2016
Merged

Tickets/dm 6459 #60

merged 2 commits into from Jul 20, 2016

Conversation

n8pease
Copy link
Contributor

@n8pease n8pease commented Jun 10, 2016

No description provided.


return butler.repository._parents[0]._mapper.index['calexp']['visit'][None]
return butler.inputs[0].repo._mapper.index['calexp']['visit'][None]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nicer if this didn't have to know about the mapper internals (or that there's even a mapper at all) and could just use a standard Butler interface. But it isn't a big deal, as this is just a test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that the mappers (and mapper internals) should be private. I think that's acknowledged by everyone and all agree that this is an acceptable violation of that since it's in a test.
In this case, the index parameter is unique to lsst.pipe.tasks.mocks.simpleMapper.SimpleMapper. One way I can think of to do it would be to create a dataset type for the parameter and have the mapper special case that dataset type to return the value for, in this case, self.index['calexp']['visit'][None](I think it would probably want RFCing, which makes it larger than the scope of this story, IMO)

@n8pease n8pease force-pushed the tickets/DM-6459 branch 3 times, most recently from 46f27c6 to cfa5923 Compare July 5, 2016 17:43
@@ -436,7 +436,7 @@ def isBadId(self, info, badIdList):
def run(self, args):
"""Ingest all specified files and add them to the registry"""
filenameList = sum([glob(filename) for filename in args.files], [])
root = args.butler.repository._mapper.root
root = args.input #args.butler.repository._mapper.root
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless the old version is somehow descriptive, should just delete the comment.

@n8pease n8pease merged commit a223a70 into master Jul 20, 2016
@ktlim ktlim deleted the tickets/DM-6459 branch August 25, 2018 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants