mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
Merge branch 'develop' into feature/docu
This commit is contained in:
commit
5d671257e9
1 changed files with 6 additions and 4 deletions
|
@ -352,10 +352,10 @@ This can be achieved by storing all information in one single file. The export r
|
|||
- `host` is a string and contains the hostname of the machine where the file has been written.
|
||||
- `description` contains information on the content of the file. This field is not filled automatically in `pyerrors`. The user is advised to provide as detailed information as possible in this field. Examples are: Input files of measurements or simulations, LaTeX formulae or references to publications to specify how the observables have been computed, details on the analysis strategy, ... This field may be any valid JSON type. Strings, arrays or objects (equivalent to dicts in python) are well suited to provide information.
|
||||
|
||||
The only necessary entry of the file is the field
|
||||
The only necessary entry of the file is the field
|
||||
-`obsdata`, an array that contains the actual data.
|
||||
|
||||
Each entry of the array belongs to a single structure of observables. Currently, these strucutres can be eiter of `Obs`, `list`, `numpy.ndarray`, `Corr`. All `Obs` inside a structure (with dimension > 0) have to be defined on the same set of configurations. Different structures, that are represented by entries of the array `obsdata`, are treated independently. Each entry of the array `obsdata` has the following required entries:
|
||||
Each entry of the array belongs to a single structure of observables. Currently, these structures can be either of `Obs`, `list`, `numpy.ndarray`, `Corr`. All `Obs` inside a structure (with dimension > 0) have to be defined on the same set of configurations. Different structures, that are represented by entries of the array `obsdata`, are treated independently. Each entry of the array `obsdata` has the following required entries:
|
||||
- `type` is a string that specifies the type of the structure. This allows to parse the content to the correct form after reading the file. It is always possible to interpret the content as list of Obs.
|
||||
- `value` is an array that contains the mean values of the Obs inside the structure.
|
||||
The following entries are optional:
|
||||
|
@ -367,11 +367,11 @@ The following entries are optional:
|
|||
|
||||
The array `data` contains the data from MC chains. Each entry of the array corresponds to one ensemble and contains:
|
||||
- `id`, a string that contains the name of the ensemble
|
||||
- `replica`, an array that contains an entry per replica of the ensemble.
|
||||
- `replica`, an array that contains an entry per replica of the ensemble.
|
||||
|
||||
Each entry of `replica` contains
|
||||
`name`, a string that contains the name of the replica
|
||||
`deltas`, an array that contains the actual data.
|
||||
`deltas`, an array that contains the actual data.
|
||||
|
||||
Each entry in `deltas` corresponds to one configuration of the replica and has $1+N$ many entries. The first entry is an integer that specifies the configuration number that, together with ensemble and replica name, may be used to uniquely identify the configuration on which the data has been obtained. The following N entries specify the deltas, i.e., the deviation of the observable from the mean value on this configuration, of each `Obs` inside the structure. Multi-dimensional structures are stored in a row-major format. For primary observables, such as correlation functions, $value + delta_i$ matches the primary data obtained on the configuration.
|
||||
|
||||
|
@ -383,6 +383,8 @@ The array `cdata` contains information about the contribution of auxiliary obser
|
|||
|
||||
A JSON schema that may be used to verify the correctness of a file with respect to the format definition is stored in ./examples/json_schema.json. The schema is a self-descriptive format definition and contains an exemplary file.
|
||||
|
||||
Julia I/O routines for the json.gz format, compatible with [ADerrors.jl](https://gitlab.ift.uam-csic.es/alberto/aderrors.jl), can be found [here](https://github.com/fjosw/ADjson.jl).
|
||||
|
||||
## Jackknife samples
|
||||
For comparison with other analysis workflows `pyerrors` can generate jackknife samples from an `Obs` object or import jackknife samples into an `Obs` object.
|
||||
See `pyerrors.obs.Obs.export_jackknife` and `pyerrors.obs.import_jackknife` for details.
|
||||
|
|
Loading…
Add table
Reference in a new issue