From 032d4efa1eabaf4636499cce564045e014b5ab0d Mon Sep 17 00:00:00 2001 From: muddymudskipper Date: Sat, 29 Jun 2024 14:45:08 +0100 Subject: [PATCH] valid range of "Maximum RAM Percentage" parameter in Validate plugin --- CHANGELOG.md | 5 +++++ cmem_plugin_reason/plugin_validate.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e481e71..675718e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/) +## [Unreleased] 2024-06-28 + +### Fixed + +- valid range of "Maximum RAM Percentage" parameter in Validate plugin (1-100) ## [1.0.0alpha3] 2024-06-28 diff --git a/cmem_plugin_reason/plugin_validate.py b/cmem_plugin_reason/plugin_validate.py index f2c8969..8a5a487 100644 --- a/cmem_plugin_reason/plugin_validate.py +++ b/cmem_plugin_reason/plugin_validate.py @@ -110,7 +110,7 @@ def __init__( # noqa: PLR0913 validate_filename(md_filename) except: # noqa: E722 errors += "Invalid filename for parameter Output filename. " - if max_ram_percentage not in range(1, 100): + if max_ram_percentage not in range(1, 101): errors += "Invalid value for parameter Maximum RAM Percentage. " if errors: raise ValueError(errors[:-1])