angelolab / toffy

Scripts for interacting with and generating data from the commercial MIBIScope
MIT License
10 stars 3 forks source link

Ensure safe conversion of panel types during `modify_panel_ranges` #443

Closed alex-l-kong closed 11 months ago

alex-l-kong commented 11 months ago

What is the purpose of this PR?

Closes #442. A future pandas version will error out on int to float conversions, so we modify that to suppress the warning.

How did you implement your changes

Add the following lines:

panel_new["Start"] = panel_new["Start"].astype(np.float64)
panel_new["Stop"] = panel_new["Stop"].astype(np.float64)

prior to adding the offsets.

review-notebook-app[bot] commented 11 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB