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

DM-37703: Use InMemoryDatasetHandle and drop DatasetRef from test #80

Merged
merged 5 commits into from Apr 19, 2023

Conversation

timj
Copy link
Member

@timj timj commented Apr 18, 2023

No description provided.

dataframe : `pandas.DataFrame`
dataframe, cut to the specified columns.
"""
if "columns" in parameters:
Copy link
Member Author

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.

@timj timj requested a review from erykoff April 18, 2023 23:01
It's not needed any where. The test only needs to store the
region for later.
@@ -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"})
Copy link
Member Author

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.

@timj timj changed the title DM-37703: Use InMemoryDatasetHandle and resolved ref DM-37703: Use InMemoryDatasetHandle and drop resolved ref Apr 19, 2023
@timj timj changed the title DM-37703: Use InMemoryDatasetHandle and drop resolved ref DM-37703: Use InMemoryDatasetHandle and drop DatasetRef from test Apr 19, 2023
@timj timj merged commit 89a5e76 into main Apr 19, 2023
7 checks passed
@timj timj deleted the tickets/DM-37703 branch April 19, 2023 17:52
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