Skip to content

Commit

Permalink
* nemo/generators.py (CSTraceGenerator): Disable pylint message
Browse files Browse the repository at this point in the history
  unsubscriptable-object due to a limitation in Pylint:

  pylint-dev/pylint#9250
  • Loading branch information
bje- committed Dec 13, 2023
1 parent f9b24cb commit 4ca554b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemo/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def __init__(self, polygon, capacity, filename, column, label=None,
assert np.all(~np.isnan(cls.csvdata)), \
f'Trace file {filename} contains NaNs; inspect file'
cls.csvfilename = filename
# pylint limitation: https://github.com/pylint-dev/pylint/issues/9250
# pylint: disable=unsubscriptable-object
self.generation = cls.csvdata[::, column]


Expand Down

0 comments on commit 4ca554b

Please sign in to comment.