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
DM-37703: Use InMemoryDatasetHandle and drop DatasetRef from test #80
Conversation
dataframe : `pandas.DataFrame` | ||
dataframe, cut to the specified columns. | ||
""" | ||
if "columns" in parameters: |
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.
It doesn't look like this parameter is ever used because it looks like this code has been copied from an implementation that had been used for pandas DataFrame objects -- the tests pass and SimpleCatalog is not configured to understand a columns parameter.
It's not needed any where. The test only needs to store the region for later.
It was too old and isort would not work.
@@ -65,10 +39,6 @@ class MockDataId: | |||
def __init__(self, region): | |||
self.region = region | |||
|
|||
datasetDimensions = DimensionUniverse().extract(["htm7"]) | |||
datasetType = DatasetType("gaia_dr2_20200414", datasetDimensions, StorageClass("SimpleCatalog")) | |||
self.ref = DatasetRef(datasetType, {"htm7": "mockRefCat"}) |
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.
Turns out this ref wasn't needed at all so I simply deleted it.
No description provided.