amended outer constructor for Settings()
parent
31801f58ff
commit
ef4d4bcae2
|
@ -18,16 +18,15 @@ julia> my_settings = Settings() # will generate default settings
|
||||||
Settings(:mass_point, :distance, 20, 3, :running_time, :dataframe)
|
Settings(:mass_point, :distance, 20, 3, :running_time, :dataframe)
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
function Settings(file="DEFAULT")
|
function Settings(
|
||||||
|
file = "DEFAULT";
|
||||||
## default values
|
massModel::Symbol = :mass_point,
|
||||||
massModel = :mass_point
|
stepVariable::Symbol = :distance,
|
||||||
stepVariable = :distance
|
stepSize::Number = 20,
|
||||||
stepSize = 20
|
approxLevel::Number = 3,
|
||||||
approxLevel = 3
|
outputDetail::Symbol = :running_time,
|
||||||
outputDetail = :running_time
|
outputFormat::Symbol = :dataframe
|
||||||
outputFormat = :dataframe
|
)
|
||||||
|
|
||||||
## load from file
|
## load from file
|
||||||
if file != "DEFAULT"
|
if file != "DEFAULT"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue