Skip to content

1.25.0

Choose a tag to compare

@awsbuild awsbuild released this 09 Feb 12:35

Oasis Release v1.25.0

Docker Images (Platform)

Docker Images (User Interface)

Components

Changelogs

OasisPlatform Changelog - 1.25.0

  • #583 - Align model_settings schema
  • #587 - OpenAPI specification contains duplicate objects
  • #589 - Missing array in api specification
  • #592 - Add analysis_settings workaround for lts-1.15.x workers
  • #593 - Linking portfolio files on S3 does not work
  • #598 - set DATA_UPLOAD_MAX_MEMORY_SIZE
  • #600 - Update schema to match with oasislmf==1.25.0
  • #601 - Update/security fixes

OasisLMF Changelog - 1.25.1

  • #961 - Feature/docs
  • #973 - manage -4 and pass through -5 sidx
  • #963 - Add supported OED versions to model metadata (model_settings.json)
  • #978 - Model Schema update - replace numeric_parameters with integer_parameters
  • #980 - Feature/976 quantile
  • #981 - Footprint server profiling
  • #983 - Unexpected output change in PiWind testing
  • #987 - Add a Python implementation of the cdftocsv tool

ktools Changelog - v3.7.5

  • #267 - period weighting file affects leccalc accuracy
  • #241 - Add OSX build via Github Actions
  • #274 - Ignore chance of loss and maximum loss values when filling losses vec…
  • #275 - Feature/271 quantile
  • #272 - Incorrect quantile losses from pltcalc

Release Notes

OasisPlatform Notes

Fix for API schema generation - (PR #588)

The classes AnalysisListSerializer and PortfolioListSerializer are ReadOnly versions of the standard serializers used only for the GET list methods. This speeds up the responses time, but adds unnecessary objects to the specification.
This PR overrides these with the standard AnalysisSerializer and PortfolioSerializer in the generated OpenAPI schema.

Fix schema so analysis & portfolios are type array - (PR #591)

See issue #589

Compatibility fix for analysis_settings with 1.15.x based workers - (PR #592)

A workaround for to support worker versions of 1.15.x and older. With the analysis settings schema change from OasisLMF/OasisLMF#957 any workers using the older schema will fail with the newer analysis_settings.json format.

To address this, without patching the older workers, the obsolete fields are copied into the analysis settings file on POST to the API

Pre-Post analysis_settings.json

{
  "analysis_tag": "base_example",
  "source_tag": "MDK",
  "model_name_id": "PiWind",
  "model_supplier_id": "OasisLMF",
  "number_of_samples": 10,
  "gul_threshold": 0,
  "model_settings": { },
  "gul_summaries": [ .. ],
  "il_summaries": [ .. ],
   "ri_summaries": [ .. ],
  "gul_output": true,
  "il_output": true,
  "ri_output": true
}

Stored analysis_settings.json

{
  "analysis_tag": "base_example",
  "source_tag": "MDK",
  "model_name_id": "PiWind",
  "model_supplier_id": "OasisLMF",
  "number_of_samples": 10,
  "gul_threshold": 0,
  "model_settings": { },
  "gul_summaries": [ .. ],
  "il_summaries": [ .. ],
   "ri_summaries": [ .. ],
  "gul_output": true,
  "il_output": true,
  "ri_output": true,

  "module_supplier_id": "OasisLMF",
  "model_version_id": "PiWind"
}

Fix S3 object linking for portfolios - (PR #594)

Fixed a bug where S3 Objects failed to link when the option AWS_LOCATION option was set.

Remove limit for DATA_UPLOAD_MAX_MEMORY_SIZE check - (PR #599)

Posting file upload requests than 2.5MB can trigger a request error, setting DATA_UPLOAD_MAX_MEMORY_SIZE=None, disables this check.

Update schema to match with oasislmf==1.25.0 - (PR #600)

  • Added quantiles section to analysis_settings.json
  • added integer_parameters to model_settings.json

LTS security fixes - (PR #601)

OasisLMF Notes

OED v2 documentation - (PR #961)

  • Updated financial fields supported list
  • OED validation guidelines added

Handle Max loss -4 and Chance of Loss -5 - (PR #973)

  • create a new category of sidx that will be pass through and added to the output stream
  • handle sidx -4 (Max Loss) like other computed sidx

Added OED versions to model metadata - (PR #974)

Example:

{
  ..
  "data_settings":{
    "supported_oed_versions": ["1.5", "2.0"],
    ..
  }
}    

Added integer_parameters to model settings schema - (PR #979)

New option for integer only model setting parameters

Create quantile file at run directory preparation - (PR #980)

  • New option in analysis_settings to set quantile points. "quantiles": [0.0, 0.5, 1.0], this overrides files set by a model supplier.
  • If no quantile settings are given by the user or supplier, then create default file based on quantile.csv

Parquet support for Footprint files - (PR #981)

modelpy now supports parquet files without needing a TCP server for footprint data. In order to utilise this, we have to have a footprint.parquet directory in the static folder. The footrpint.parquet directory hosts multiple parquet files of partitioned data based on event_id. You can convert your footprint.bin file to parquet by running the convertbintoparquet command in the same directory as the footprint.bin file.

Update CI package tests to check the PiWind output on each commit - (PR #982)

Replaced the MDK run check with a platform output check by running a worker test & build

Added cdftocsvpy tool - (PR #985)

A Python implementation of the cdftocsv tool is now available: it is called cdftocsvpy.

Like cdftocsv, cdftocsvpy prints the cdf produced by getmodel to stdout in csv format.
It has the same input/output interface of cdftocsv. It can be used with a stream as an input, e.g.:

eve 1 1 | getmodel | cdftocsv | head

produces:

event_id,areaperil_id,vulnerability_id,bin_index,prob_to,bin_mean
1,1,9,1,0.268378,0.000000
1,1,9,2,0.318824,0.125000
1,1,9,3,0.665534,0.375000
1,1,9,4,0.818048,0.625000
1,1,9,5,0.933643,0.875000
1,1,9,6,1.000000,1.000000
1,1,10,1,0.048263,0.000000
1,1,10,2,0.548144,0.125000
1,1,10,3,0.597388,0.375000

By passing the -s optional argument, the header is not printed, e.g.:

eve 1 1 | getmodel | cdftocsv -s | head

produces:

1,1,9,1,0.268378,0.000000
1,1,9,2,0.318824,0.125000
1,1,9,3,0.665534,0.375000
1,1,9,4,0.818048,0.625000
1,1,9,5,0.933643,0.875000
1,1,9,6,1.000000,1.000000
1,1,10,1,0.048263,0.000000
1,1,10,2,0.548144,0.125000
1,1,10,3,0.597388,0.375000

fix size of intermediary dense array - (PR #988)

with the introduction of sidx -5, intermediary dense array was too small and overlap with sidx (num_sample - 1).
increase the size by 2 to fix the issue

ktools Notes

Increase precision of return periods in leccalc and ordleccalc - (PR #268)

Floating point errors can cause issues in the calculation of return periods. These are exacerbated when using a return period file, as return periods may not match those calculated. Increasing the precision of the calculated return periods from float to double solves this issue.

Bug fix for quantile losses in pltcalc - (PR #274)

Chance of loss and max loss samples excluded from loss quantile calculation which should only be using sidx >= 1.

Added quantile report tests - (PR #275)

Added tests for QELT and QPLT reports

Fix quantile losses in Quantile Period Loss Table (QPLT) - (PR #273)

Quantile losses for the same event_id and summary_id differed between the Quantile Event Loss Table (QELT) and Quantile Period Loss Table (QPLT). This was because the ChanceOfLoss and MaxLoss values from the output of summarycalc were erroneously included in the calculation of these losses.

The contributions from ChanceOfLoss and MaxLoss have been removed. The quantile losses between the QELT and QPLT now agree for the same event_id and summary_id.