SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] organization of traited config system

From: Darren D. <dd...@co...> - 2007年07月26日 14:22:20
I am working on reorganizing our config system to work with Fernando's 
tconfig, and I could use some advice. Currently, a lot of the configuration 
code lives in __init__.py and rcsetup.py. I am thinking of a layout like 
this:
matplotlib/lib/matplotlib/
 __init__
 ... 
 config/
 api # mpl's entry point: all imports come from here
 checkdep # checks for dependencies like ghostscript, dvipng, etc.
 configobj # external project, required by tconfig
 cutils # configuration utilities, like get_home, is_writable_dir, etc.
 mplconfig.py # reads new config files using tconfig
 mpltraits # defines mpl traits like colors, markers, linestyles
 rcparams # configuration using old matplotlibrc files
 rcsetup # provides defaults, setup, for rcparams
 tconfig # Fernando's traited config, requires traits and configobj
 verbose # defines the Verbose class used throughout mpl
the __init__ file would import from config.api: rcParams, which would be the 
existing dict if the old config system is active, or a dict wrapping the new 
config object, along with rc, rcdefaults, etc.
Does this sound reasonable, or could anyone suggest a better organization? 
Should every trait used by mpl be defined in mpltraits, that is, should 
mpltraits provide an interface to enthought traits? Or should mpltraits only 
provide traits that are not predefined by enthought? Is config/ a bad place 
for verbose?
Thanks,
Darren

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /