[Pkg-exppsy-pynifti] [Nipy-devel] Data packaging, a proposal for feedback

Gael Varoquaux gael.varoquaux at normalesup.org
Sun Jul 26 06:03:21 UTC 2009


On Fri, Jul 24, 2009 at 03:27:30PM -0700, Matthew Brett wrote:
> Hi,

> >    - We should provide a default template and atlas environment, where
> >      the default (or 'core') nipy data set gets installed.

> I'm not sure what 'default template and atlas environment' means - can
> you expand?

Just adding something like the following lines to an __init__.py:

   from nipy.utils import make_datasource
   templates = make_datasource('nipy', 'templates')

So that the user can simply import the name 'templates' from eg
nipy.utils. These lines are simply taken from the documentation, so it is
nothing more than a helper, but I believe that there is a lot of value to
it.

Gaël



More information about the Pkg-exppsy-pynifti mailing list