holoviz / holoviz/param

Add global parameters

Open
#55 3 comments 0 reactions 0 assignees View on GitHub
"param in more places" status: discussion type-feature
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

From Jim:

> We also [want] global parameters, with an object in the main namespace that
> collects options specified on the commandline. I.e., any commandline option should
> have a corresponding parameter, and changing that option should have a direct
> mapping to that parameter, so that such parameters can be changed in a .rc file,
> from within a script, etc.

From Jean-Luc:

> Converted from SourceForge issue 3537800, submitted by jlstevens
> Submit Date: 2012-06-25 14:49 GMT
>
> [...] global parameters that are relevant to the whole simulator (eg. OpenMP
> settings) would be very useful. [...] global_params should be implemented with the
> following properties:
> - At the commandline any option '-x=y' should set global parameter 'x' to value 'y'
> - Global parameters belong to the global namespace so that you can put the line 'x=y'
> in your topographica.rc file to always set global parameter 'x' as 'y' by default. Any
> behaviour set in the rc file is overridden if explicitly set on the commandline.
> - At the IPython prompt, entering 'x=y' should set global parameter 'x' to 'y' for the
> reminder of that session (ie. it should be possible to rebind global parameters at any
> time)
>
> If this were implemented it would be possible to specify options in the topographica.rc
> file instead of having to specify these options each time Topographica is invoke. All
> the current options should be implemented this way (ie. -i,-v,-d,-l,-g, --pdb, -c, -p, -a)
> with the exception of -h/--help.

(collected from #12 and #39)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.