From f46ca20fa99c7e4bc6f11abbf1e420235faf3de0 Mon Sep 17 00:00:00 2001 From: Paul Jonas Jost <70631928+PaulJonasJost@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:22:19 +0100 Subject: [PATCH] Remove flake8-black (#1303) * Remove flake8-black due to no updates and running black separately already. * Solved B038 error on flake8 * Added to CHANGELOG.rst * Updated Changelog --- CHANGELOG.rst | 3 ++- pypesto/visualize/profiles.py | 8 ++++---- tox.ini | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cefa08edd..db393cf34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,7 +10,7 @@ Release notes ------------------- * General - * Stabilize tests (#1240, #1254, #1300, #1302) + * Stabilize tests (#1240, #1254, #1300, #1302, #1303) * Update type annotations and documentations (#1239, #1248, #1255, #1258, #1251, #1268, #1275) * GHA/Codeowner changes (#1260, #1261, #1259, #1262, #1285) * Update utility functions (#1243) @@ -25,6 +25,7 @@ Release notes * Select * Allow for hierarchical problems (#1241) * custom minimize method (#1264) + * Set estimated parameters in petab_select.Models (#1287) * Hierarchical * Log space startpoint sampling (#1242) * Support for box constraints on offset and scaling parameters (#1238) diff --git a/pypesto/visualize/profiles.py b/pypesto/visualize/profiles.py index f2077ceef..8069f38e9 100644 --- a/pypesto/visualize/profiles.py +++ b/pypesto/visualize/profiles.py @@ -493,15 +493,15 @@ def process_profile_indices( # get the profiles, which should be plotted and sanitize, if not plottable if profile_indices is None: - profile_indices = list(plottable_indices) + profile_indices_ret = list(plottable_indices) else: + profile_indices_ret = list(profile_indices) for ind in profile_indices: if ind not in plottable_indices: - profile_indices = list(profile_indices) - profile_indices.remove(ind) + profile_indices_ret.remove(ind) warn( 'Requested to plot profile for parameter index %i, ' 'but profile has not been computed.' % ind ) - return profile_indices + return profile_indices_ret diff --git a/tox.ini b/tox.ini index c1fec3cab..ba32fe490 100644 --- a/tox.ini +++ b/tox.ini @@ -157,7 +157,6 @@ deps = flake8-colors >= 0.1.9 flake8-comprehensions >= 3.10.0 flake8-print >= 5.0.0 - flake8-black >= 0.3.3 flake8-isort >= 4.0.2 flake8-docstrings >= 1.6.0 commands =