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

[FIX] Table: from_file/from_url remove type conversion #5812

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

PrimozGodec
Copy link
Contributor

@PrimozGodec PrimozGodec commented Jan 28, 2022

Issue

When from_file/from_url is called on from table derived class, the type is changed after the reading (with calling table constructor) and so the view is made -- which is not expected by from_file

Description of changes

In discussion with @markotoplak we decided to remove the type conversion since it is causing issues (also destroys the type when for example Corpus is pickled). Classes that are derived from Table can handle the conversion themselves.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec force-pushed the fix-table-lock branch 3 times, most recently from 387ab35 to cf80042 Compare January 28, 2022 10:40
@codecov
Copy link

codecov bot commented Jan 28, 2022

Codecov Report

Merging #5812 (52567e4) into master (2b857a3) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5812   +/-   ##
=======================================
  Coverage   86.13%   86.13%           
=======================================
  Files         316      316           
  Lines       66388    66384    -4     
=======================================
- Hits        57182    57179    -3     
+ Misses       9206     9205    -1     

@markotoplak markotoplak merged commit d545b38 into biolab:master Feb 7, 2022
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