-
Notifications
You must be signed in to change notification settings - Fork 45
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
general fixes to adapt table model #417
Closed
Closed
Changes from 1 commit
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
5848756
[pre-commit.ci] pre-commit autoupdate (#394)
pre-commit-ci[bot] 9d68766
initial tests multi_table design
melonora d5e3ee3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a47c0cf
add mock new table
melonora e1c71aa
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora f857d4e
create test class and cleanup
melonora 3c32b27
additional cleanup
melonora 3f47c3b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bfb4c7c
additional cleanup
melonora 8cc1acf
additional cleanup
melonora c4de59c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c6d0976
add pseudo methods
melonora e8eeda8
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora cd3def6
Change table type in init
melonora b815980
make tables plural and add to validation in __init__
melonora 3031950
revert to old public accessor
melonora c149c71
Validate each table in dictionary
melonora cb826e0
iterate dict values
melonora da4cc86
add comment
melonora d6589a0
adjust table getter
melonora 1ad33b0
Add tables getter
melonora 1d1907b
Fix missing parenthesis
melonora bec136f
change to warnings.warn DeprecationWarning
melonora 22e2bef
allow for backward compatibility in init
melonora ef0a2dc
[pre-commit.ci] pre-commit autoupdate (#408)
pre-commit-ci[bot] c75c684
fix dict subscriptable
melonora 9819a09
fix string representation of sdata
melonora 59b5d21
add deprecation decorator for future
melonora 3cdc492
Allow for tables not annotating elements
melonora 2c51b69
switch to using tables with deprecation
melonora 54631ee
fix string representation
melonora 29a37a7
write tables element group
melonora 0c258e4
adjust io to multi_table
melonora 60de077
Alter io to give None as default value for spatialdata attrs keys
melonora 53f9ae5
add tables setter
melonora b1d451c
raise keyerror table getter
melonora 0f8df0e
remove commented tables setter
melonora f12d8de
raise keyerror in table deleter
melonora d7a3092
add deprecation warning
melonora e94d994
fix tests
melonora f3d41c7
add DeprecationWarning
melonora 396a970
comment test
melonora d646ca3
change setter into method
melonora 433a9f3
circumvent mappingproxy set issue
melonora d3d2083
adjust set get test
melonora 304aa38
add get table keys
melonora 02ae3e5
add column getters
melonora b550292
add change set target table
melonora 535d917
Give default table name
melonora 5e231ac
fix spatialdata without table
melonora 6a18365
add int32 because of windows and add docstring
melonora e844067
fix filtering by coordinate system
melonora 9826d35
Change to Path to not be linux / mac specific
melonora b3eea20
Change to Path to not be linux / mac specific
melonora f18251f
table should annotate existing element
melonora 88c1579
return table with AnnData having 0 rows
melonora 2a6d675
Adjust for windows
melonora cfcc8ac
adjust for accessing table elements
melonora 957c4c9
fix change annotation target
melonora 36b1e0c
fix set annotation target
melonora 9f5b8c2
fix/add tests
melonora 0c07957
fix init from elements
melonora a1c0df2
fix init from elements tests
melonora 230e38e
add validation check
melonora 219d272
add table validation SpatialData.__init
melonora 3051cf0
fix ruff
melonora 1bc1f11
only concatenate if annotating
melonora 3a51b4a
change into warning because of filtering
melonora 8381f29
fix last tests
melonora dc0d186
adjust to tables
melonora 9c3c483
use tables parameter
melonora b1d62ef
fix some mypy
melonora 3817b78
some mypy fixes
melonora 76ce40d
some more mypy
melonora caecb83
fix another mypy
melonora 2dc7a74
circumvent typing error on py3.9
melonora cde90e2
mypy yet again
melonora a20cb95
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 854a5ce
fix pre_commit
melonora 81a18bb
down to 12 mypy errors
melonora f85a093
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora 2c3138a
down to 1mypy error
melonora dd1db66
fixed mypy errors
melonora 9ac3a15
fix set_table_annotation
melonora 444a335
added docstring
melonora c9e7d99
refactor data loader (#299)
giovp fd7a8a0
add documentation
melonora d5d7743
add documentation
melonora 15cd907
Merge branch 'main' into multi_table
melonora e61e007
minor adjustment docstring
melonora af1b93f
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora 05964c5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5e16bbd
Added / adjusted docstrings
melonora 432bb1d
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora 45b14a2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 67fd7d1
fix mypy after merge
melonora 899d8c3
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora 351b7c9
refactor function name
melonora c620c45
[pre-commit.ci] pre-commit autoupdate (#411)
pre-commit-ci[bot] 898b5ab
small fixes
LucaMarconato d592606
added gen_elements docstrings
melonora c479976
tiny comments
LucaMarconato 94ebd70
fix ruff pre-commit
melonora 6beb53b
removed types from docstring
LucaMarconato a708594
refactor of set_table_annotation_target
melonora c1d83f3
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora b957906
add quotes
melonora 31fca71
fix (?)
LucaMarconato e780d6f
refactor error messages
melonora 4eed839
fix incremental update (#329)
giovp f7cebb5
add concatenate argument
melonora aca8965
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora aff28c2
Merge branch 'main' into multi_table
melonora c2c062f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c3690b7
add util functions to init
melonora 415022c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 207b411
add util functions to init
melonora 29f8ecf
Merge branch 'multi_table' of https://github.com/melonora/spatialdata…
melonora a5d4d5d
add tables class
melonora de74482
add table class
melonora 31dc81d
add deprecation back
melonora d3eef8e
rename function in tests
melonora f16b357
rename function in tests
melonora 3c80380
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3a713a8
fix precommit
giovp 798a978
update precommit and remove add_table, store_table and general fixes
giovp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
comparing this to #410 there is a difference here. However, I am not certain that
shared_keys
needs to be passed here since we are returning a newSpatialData
object. What do you think @giovp @LucaMarconato ?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.
yeah I agree, the shared keys should be instantiated in the return line 680. I think this can be closed!
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.
After offline conversation with Giovanni, we agreed it is not required.