-
Notifications
You must be signed in to change notification settings - Fork 1
Add TableIOService and test #8
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
Conversation
|
Hey @imagejan , greeat, thanks for spending time on this! It looks very good. However, I just cloned the code and tried if/how one can read from such a table. I extended your test to this: Either it crashes when saving the table (commented out line) or while accessing the table after reading it. I'm wondering - shouldn't it also crash in case the .csv file cannot be found? Thanks for your efforts! Cheers, |
|
Hi @haesleinhuepf, sorry that I didn't provide enough information here. Since the actual In order to test this PR in Fiji, you'll have to have both #@ TableIOService ioWhat's still missing to make usage convenient from notebooks, is an integration into the gateway, such as |
This commit adds a Service that allows to open and save org.scijava.table.Table objects. TableIOService#open() explicitly returns Table objects, so it can be used instead of IOService whenever strict types are desired. Fixes #7. Dedicated to Robert Haase.
250ec53 to
5979e59
Compare
haesleinhuepf
left a comment
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.
Ok. Cool. Let's merge this.
Just a comment: I don't understand the architecture. I see here code for a TableIOService that cannot save tables. But apparently it does it's job.
|
@haesleinhuepf the The goal of this PR was to introduce a As we have a fully extensible framework, it's enough if the service finds a suitable Hope that clarifies things a little : ) |
Using PluginInfo.create available in scijava-common 2.81.0, we can avoid having the FakeTableIOPlugin test class visible in all tests.
This PR adds a
Servicethat allows to open and saveorg.scijava.table.Tableobjects.TableIOService#open()explicitly returnsTableobjects, so it can be used instead ofIOServicewhenever strict types (i.e. stricter thanObjectat least) are desired.Fixes #7.
@haesleinhuepf, please let me know if this would satisfy your needs discussed in imagej/tutorials#77 (comment). (If yes, we should update the howtos accordingly, of course.)