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

chore: replaced deprecated method to open TileDB array (#56) #236

Merged
merged 3 commits into from
Mar 28, 2022

Conversation

metakuni
Copy link
Contributor

@metakuni metakuni commented Mar 21, 2022

Reviewers

Functional:

Readability:


Changes

  • modify: replaced deprecated tiledb.Array() with tiledb.open()

@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #236 (f83b536) into main (24c41e4) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   76.49%   76.47%   -0.03%     
==========================================
  Files          92       92              
  Lines        6764     6758       -6     
==========================================
- Hits         5174     5168       -6     
  Misses       1590     1590              
Flag Coverage Δ
frontend 76.47% <100.00%> (-0.03%) ⬇️
javascript 76.47% <100.00%> (-0.03%) ⬇️
smokeTest ?
unitTest 76.47% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/dataset/cxg_dataset.py 87.36% <100.00%> (-0.14%) ⬇️
dataset/cxg_dataset.py 87.36% <0.00%> (-0.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24c41e4...f83b536. Read the comment docs.

@metakuni metakuni marked this pull request as ready for review March 21, 2022 20:18
Copy link
Contributor

@bkmartinjr bkmartinjr left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -187,7 +187,7 @@ def _validate_and_initialize(self):

@staticmethod
def _open_array(uri, tiledb_ctx):
with tiledb.Array(uri, mode="r", ctx=tiledb_ctx) as array:
with tiledb.open(uri, mode="r", ctx=tiledb_ctx) as array:
Copy link
Contributor

@bkmartinjr bkmartinjr Mar 21, 2022

Choose a reason for hiding this comment

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

Reading this more closely, can't this entire function be replaced with a single call to tiledb.open?

Ie, return tiledb.open(uri, mode="r", ctx=tiledb_ctx)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, good point! 😄

Copy link
Contributor

@MDunitz MDunitz left a comment

Choose a reason for hiding this comment

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

lgtm

@metakuni metakuni enabled auto-merge (squash) March 28, 2022 23:05
@metakuni metakuni merged commit 4e7bf79 into main Mar 28, 2022
@metakuni metakuni deleted the kkatsuya/use-tiledb-open branch March 28, 2022 23:10
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.

3 participants