francescorandi / optics

GNU General Public License v3.0
2 stars 0 forks source link

Application vs library #77

Open ivergara opened 5 years ago

ivergara commented 5 years ago

How do you see this code? More as a library that allows you to build from it or as an application (as in some sort of "executable")? Or perhaps as both?

francescorandi commented 5 years ago

I feel it would be more useful as a library, with some "high level" function that allow you to easily use it inside your script and/or some example scripts that can be directly used if there are no particular needs. If we provide only an "executable" or similar, we might have to force, e.g, the input file to be in a specific format. This would require that people use a separate program or script of their own to convert the data in the format we use. If instead we provide functions and example scripts, people can easily integrate them with an interface to their data format. It is also easy to build a simple user-interface with Matplotlib, so that we can still build some interactive part that can be called with a line of code. If you're not familiar with that, see in my repository mistofrutta, mistofrutta.plt.hyperstack. It's a tool to visualize "volumetric" images with different channels. We work a lot with images of samples taken at different depths (positions along z in the microscope) and at different wavelengths.