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

Implement delayed instantiation of StorageClass (DM-15887) #102

Merged
merged 1 commit into from Nov 13, 2018

Conversation

andy-slac
Copy link
Contributor

DatasetType handling of storageClass property was re-implemented to
allow instance construction from StorageClass name. In that case
storageClass property uses delayed instantiation (which should only be
done when butler is properly configured). This allows DatasetType use in
a context when butler is not initialised and only name of the
StorageClass is provided (e.g. in Pipeline construction).

Comparison and hash methods of DatasetType class have to be re-implemented
because internal state became more complicated.

DatasetType handling of storageClass property was re-implemented to
allow instance construction from StorageClass name. In that case
`storageClass` property uses delayed instantiation (which should only be
done when butler is properly configured). This allows DatasetType use in
a context when butler is not initialised and only name of the
StorageClass is provided (e.g. in Pipeline construction).

Comparison and hash methods of DatasetType class have to be re-implemented
because internal state became more complicated.
@andy-slac andy-slac merged commit 3e8a0f8 into master Nov 13, 2018
@timj timj deleted the tickets/DM-15887 branch April 22, 2020 22:02
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

2 participants