Skip to content

Tranformation copy#283

Merged
LucaMarconato merged 1 commit into
scverse:mainfrom
melonora:transform_copy
Jun 3, 2023
Merged

Tranformation copy#283
LucaMarconato merged 1 commit into
scverse:mainfrom
melonora:transform_copy

Conversation

@melonora
Copy link
Copy Markdown
Collaborator

@melonora melonora commented Jun 3, 2023

Currently it is the case that a user creates a transformation dictionary which is used while parsing multiple data sources into spatialdata elements. When on top of that setting an additional transformation later for one specific element, all the other elements have the transformation set as well. As suggested by @LucaMarconato, this PR fixes this issue by creating a dictionary copy in the parse function if transformations is not None. Also, a test has been added.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2023

Codecov Report

Merging #283 (6e8a4f5) into main (2e55e83) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #283   +/-   ##
=======================================
  Coverage   89.90%   89.90%           
=======================================
  Files          36       36           
  Lines        4408     4410    +2     
=======================================
+ Hits         3963     3965    +2     
  Misses        445      445           
Impacted Files Coverage Δ
src/spatialdata/models/models.py 86.11% <100.00%> (+0.07%) ⬆️

@LucaMarconato
Copy link
Copy Markdown
Member

Perfect thanks a lot!

@LucaMarconato LucaMarconato merged commit e33db15 into scverse:main Jun 3, 2023
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.

2 participants