On Wed, Nov 30, 2011 at 1:49 PM, Neal Becker wrote:
> My suggestion is: don't.
>
> It's easier to script runs if you read parameters from the command line.
> I recommend argparse.
>
>
I think setting parameters in a config file and setting them on the
command line both have their merits. I like
My suggestion is: don't.
It's easier to script runs if you read parameters from the command line.
I recommend argparse.
Giovanni Plantageneto wrote:
> Dear all,
> I have a simple question. I would like to have all the parameters of a
> model written in a configuration file (text), and I would li
On Wednesday, November 30, 2011, Robert Kern wrote:
> On Wed, Nov 30, 2011 at 11:09, Giovanni Plantageneto
> wrote:
>> Dear all,
>> I have a simple question. I would like to have all the parameters of a
>> model written in a configuration file (text), and I would like to have
>> all the parameter
On 30. nov. 2011, at 12:09, Giovanni Plantageneto wrote:
> Dear all,
> I have a simple question. I would like to have all the parameters of a
> model written in a configuration file (text), and I would like to have
> all the parameters in the file automatically defined inside a program.
> I find C
On 11/30/2011 6:09 AM, Giovanni Plantageneto wrote:
> I find ConfigParser a bit low level, is there any function that
> automatically reads everything from a file?
You could just use a dictionary for your params,
and import it from your "configuration file".
If you insist on an ini format, Config
On Wed, Nov 30, 2011 at 11:09, Giovanni Plantageneto
wrote:
> Dear all,
> I have a simple question. I would like to have all the parameters of a
> model written in a configuration file (text), and I would like to have
> all the parameters in the file automatically defined inside a program.
> I fin
Dear all,
I have a simple question. I would like to have all the parameters of a
model written in a configuration file (text), and I would like to have
all the parameters in the file automatically defined inside a program.
I find ConfigParser a bit low level, is there any function that
automaticall