Giter Club home page Giter Club logo

napari-io-test's Introduction

napari-io-test

PyPI version Python versions See Build Status on Travis CI See Build Status on AppVeyor

A napari IO test plugin


This napari plugin was generated with Cookiecutter along with @napari's cookiecutter-napari-plugin template.

Features

  • TODO

Requirements

  • TODO

Installation

You can install "napari-io-test" via pip from PyPI:

$ pip install napari-io-test

Usage

  • TODO

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-io-test" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

napari-io-test's People

Contributors

sofroniewn avatar

Watchers

 avatar  avatar  avatar  avatar

napari-io-test's Issues

Do we want to maintain a `napari-io` plugin like this?

@tlambert03 - following up on discussion in napari/napari#1023 (comment) I used cookiecutter-napari-plugin to make this plugin.

It has a folder called readers which can contain files such as imageio_reader.py, npy_reader.py, and eventually could contain mat_reader.py, pims_reader.py, meshio_reader.py, shapely_reader.py, geojson_reader.py, czi_reader.py, dv_reader.py, nd2_reader.py, bioformats_reader.py etc. all of which are very minimal wrappers / converters from underlying libraries into the format napari expects.

I think the advantage of this library is the curation and testing that we could do to ensure that files are able to be read (i'm imagining we in parallel start curating a dataset of files that could be installed and tested by our CI). Another advantage is that for napari users it becomes very simple to just install one thing and have things work, rather than having to chase down and install many things.

Note here that we're able to unify across readers for different data types, shapes, images, meshes etc. A downside is that this package could have so many many dependencies that things breaking / install problems might be common. We'd have to think about what our attitude towards submissions from others would be, we could be very liberal or conservative, especially if we though about other domains of science where file types are very different (physics, astronomy, geospatial etc.)

Alternatively we try and get napari hook impls added to the various underlying libraries directly, or we have lots of napari-io-* libraries that do the translation. Or we try and pick a smaller number of libraries to drive standardization too (i.e. get the czi reader into imageio). That still won't help with the mesh and shape reading though.

If we do do this should it live at napari/napari-io which in some senses gives it an "official branding" or should it live somewhere else?

My current opinion is to go for it at napari/napari-io, set up rigorous testing / CI and try and be as comprehensive as possible, across domains, file types, and napari layer types.

Curious what your vision for all this is @tlambert03? Also curious what @jni and @royerloic thinks.

Potential list of readers

Here is a list of some potential io packages people might want to use with napari - note this list is not exhaustive and in some places is overlapping.

For image layer:

For surface layer:

For shapes layer:

For points layer:

How should testing be done?

Following on from discussion in #1 on whether we want to maintain a library like this - a big question then is how should testing be done?

There are a variety of approaches:

  • imageio has a dedicated imageio/imageio-binaries repo with small files that it uses for testing.
  • meshio has a folder with small files inside it's tests folder in the main repo. I suspect those don't get put inside the actual package on pypi though.

If this repo starts depending on these libraries would we vendor these files for our own testing purposes? Sort of depends on how people feel about #1 and looking at the list of potential readers in #2 how we'd go about things.

`reader_*.py` file approach

Right now the reader_*.py files return a list of known readable extensions - maybe we should give then the full power to return a checker though - matches the generality of the napari_get_reader function.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.