Skip to content

Commit f07cb4c

Browse files
committed
debugging test
1 parent 09e9f66 commit f07cb4c

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

NEWS.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
# NMdata 0.1.9
22

33
## New features
4-
* `NMreadInits()` adds ability to read the parameter structure as
5-
specified in a control stream, including initial values, lower/upper
6-
bounds and FIX information. It automatically allocates these values
7-
to parameter indexes, like `THETA(I)` and `OMEGA(I,J)`.
4+
* `NMreadInits()` is a new function adding the ability to read the
5+
parameter structure as specified in a control stream, including
6+
initial values, lower/upper bounds and FIX information. It
7+
automatically allocates these values to parameter indexes, like
8+
`THETA(I)` and `OMEGA(I,J)`. It by default returns a table of
9+
parameters and values in a format similar to `NMreadExt()`, and if
10+
requested it can return detailed information about the text lines
11+
and each element read in the control stream to derive this parameter
12+
table. These details can be used to edit the values and write back
13+
the information in a control stream with consistent
14+
formatting. NMsim::NMwriteInits() does this allowing NMsim() to edit
15+
the `$THETA`, `$OMEGA` and `$SIGMA` sections.
816

9-
* `NMreadParsText()` now uses `NMreadInits()` by default to index
17+
* `NMreadParsText()` now by default uses `NMreadInits()` to index
1018
parameters. You can still override this by specifying an index
1119
column (the old default) for all or some of the parameter sections.
1220

tests/testthat/test_NMreadInits.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ test_that("basic",{
1111
lines <- readLines(file.mod)
1212
res1 <- NMreadInits(lines=lines,return="all")
1313

14-
res1
15-
14+
cat(paste(res1$lines$text.before,collapse=":"),"\n")
15+
cat(paste(readRDS(fileRef)$lines$text.before,collapse=":"),"\n")
16+
1617
expect_equal_to_reference(res1,fileRef)
1718

1819

0 commit comments

Comments
 (0)