-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: check existence instead of equality for colnames of imgData #143
base: devel
Are you sure you want to change the base?
Conversation
Is there anyone running tests on the code? If you have concerns we can talk about it. |
Hi @senbaikang, thanks for your PR, and sorry for the late answer, we are all involved also in several projects and we find time to answer PRs and Issues as soon as we are able to do so. I have a concern about your PR: what happens if one of the required columns is not there? Could you tell me if you wrote a unit test to check if everything works smoothly? Thanks, |
Hi @drighelli, Many thanks for the reply! And no worries, I completely understand :) Regarding your concern, if any of the four required columns do not exist, it will have exactly the same behavior as it has right now. The only thing I did is lifting the restriction of equality to existence. Unfortunately I did not write any unit tests. If you think such tests are necessary I can do it tomorrow. Thanks, |
Hi Dario, I have added a few lines of code for user-defined columns of Let me know your thoughts :) Thanks, |
Thanks Senbai, I approved for the automatic checks, I'll take a look into the code as soon as I can! Dario |
Hi Dario, It's been a while since we communicated last time. Could you let me know the status? Thanks, |
Hi @senbaikang , thanks for this pull request, and apologies that we didn't reply earlier. I'm working through this now for the upcoming Bioconductor release cycle. Could you please let us know some additional background regarding this issue, i.e. the context where it came up? In principle I think it makes sense to allow additional custom columns in A second question I have is regarding the additional code in the pull request. Could you please give us a quick summary of what the additional code you have added in the |
Hi @lmweber, Thank you for the follow-up. Regarding the rational behind the additional custom columns in the Regarding the code in the For the current dependence of Thank you again for processing this. Please let me know if you have further questions. Best, |
Great, thanks for the explanation. So the additional Yes, if it is possible to do this all without using |
I quickly made some modifications to remove the dependencies, as well as testing it. Please double check and test it again :) |
Great, thank you, yes this additional update looks good for removing the new dependencies. We will continue to work through the rest of the update and will follow up here if we have any more comments. |
Hi, yes I think this looks good. I have added a few more commits above to do the following:
We will also need to add a version bump, but I will wait to add this after we have merged #148 so we don't get a merge conflict. I also noticed the updates changing @senbaikang could you please check my commits above look ok to you too? Then it would also be great if either @drighelli or @HelenaLC get a chance to look at this before we merge. Thank you! |
The github actions checks above are failing since they are still using the old github actions workflow. Once #148 is merged they should be ok. Checks are passing locally, and I also double-checked with a merged branch in my fork here: https://github.com/lmweber/SpatialExperiment/actions/runs/8301379820 |
Hi Lukas, Your commits look great to me, thanks! Sorry for forgetting to remove Senbai |
Thanks Lukas @lmweber and Senbai @senbaikang, I like the idea of putting additional columns to the imgData structure, but before merging it, I have a question. Could the Dario |
Thanks for checking. Yes good point, I'm not sure about that. Maybe we could add another test to check for this. |
Hi Dario, Thanks for reviewing the code! To answer your question, the Hope this is clear. Senbai |
Hi @senbaikang, thanks for the explanation, but maybe, as Lukas suggested, it would be better to write a unit test to verify this aspect before merging into the main branch. Would this be possible for you? Dario |
Hi @drighelli and @lmweber, I have added some tests for the additional arguments of the constructor. Please have a look and let me know if they are ok. Senbai |
@senbaikang could you please resolve the conflicts? If needed |
Hi Dario, It looks like only a change in the NEWS file. I have resolved the conflict. Senbai |
it looks good to me, pinging @lmweber and @HelenaLC if they want to add some additional comments, otherwise I'll merge it on my next round across the PRs. Thanks @senbaikang ! |
This simple change lifts the restriction of requiring exactly four columns in
imgData
with names beingc("sample_id", "image_id", "data", "scaleFactor")
. Instead of checking their equality, it now checks their existence, which gives more flexibility for the data structure.