From 3f058182d4047c726bd6bed0b4e42fd176d1737f Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Tue, 12 Nov 2024 16:09:07 -0500 Subject: [PATCH] chore(datafile): ignore lint rule for codacy, pending refactor --- flopy/utils/datafile.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flopy/utils/datafile.py b/flopy/utils/datafile.py index 5c32b72920..90c0cd37e4 100644 --- a/flopy/utils/datafile.py +++ b/flopy/utils/datafile.py @@ -4,6 +4,15 @@ """ +# in LayerFile, the recordarray attribute begins its life as +# a list, which is appended to in subclasses' build_index(), +# then finally becomes an array, after which it's accessed +# in this file by column name. this probably deserves some +# attention, but in the meantime, disable the pylint rule +# to appease codacy. +# +# pylint: disable=invalid-sequence-index + import os import warnings from pathlib import Path