Commit 16809c7fe7ace165174ec29206fdcc3c3d209338
1 parent
2be7341c
Call GApplicationPar::value() method for any non-string and non-filename parameter type.
Showing
2 changed files
with
3 additions
and
7 deletions
AUTHORS
| @@ -8,8 +8,8 @@ Tarek Hassan (thassan@ifae.es) | @@ -8,8 +8,8 @@ Tarek Hassan (thassan@ifae.es) | ||
| 8 | Nathan Kelley-Koskins (nathan.kelley-hoskins@desy.de) | 8 | Nathan Kelley-Koskins (nathan.kelley-hoskins@desy.de) |
| 9 | Juergen Knoedlseder (jurgen.knodlseder@irap.omp.eu) | 9 | Juergen Knoedlseder (jurgen.knodlseder@irap.omp.eu) |
| 10 | Karl Kosack (karl.kosack@cea.fr) | 10 | Karl Kosack (karl.kosack@cea.fr) |
| 11 | -Chia-Chun Lu (Chia-Chun.Lu@mpi-hd.mpg.de) | ||
| 12 | Thierry Louge (thierry.louge@irap.omp.eu) | 11 | Thierry Louge (thierry.louge@irap.omp.eu) |
| 12 | +Chia-Chun Lu (Chia-Chun.Lu@mpi-hd.mpg.de) | ||
| 13 | Pierrick Martin (pierrick.martin@irap.omp.eu) | 13 | Pierrick Martin (pierrick.martin@irap.omp.eu) |
| 14 | Michael Mayer (michael.mayer@physik.hu-berlin.de) | 14 | Michael Mayer (michael.mayer@physik.hu-berlin.de) |
| 15 | Ellis Owen (Ellis.Owen@mpi-hd.mpg.de) | 15 | Ellis Owen (Ellis.Owen@mpi-hd.mpg.de) |
pyext/GApplication.i
| @@ -120,12 +120,8 @@ public: | @@ -120,12 +120,8 @@ public: | ||
| 120 | par.filename(val); | 120 | par.filename(val); |
| 121 | } | 121 | } |
| 122 | else { | 122 | else { |
| 123 | - std::string msg = "Attempt to set \""+par.type()+ | ||
| 124 | - "\" parameter \""+name+"\" with string " | ||
| 125 | - "value."; | ||
| 126 | - throw GException::invalid_argument("__setitem__(std::string, int)", | ||
| 127 | - msg); | ||
| 128 | - } | 123 | + par.value(val); |
| 124 | + } | ||
| 129 | return; | 125 | return; |
| 130 | } | 126 | } |
| 131 | GApplication copy() { | 127 | GApplication copy() { |