diff --git a/bspump/matrix/matrix.py b/bspump/matrix/matrix.py
index cd5929e9..78c8e035 100644
--- a/bspump/matrix/matrix.py
+++ b/bspump/matrix/matrix.py
@@ -218,8 +218,8 @@ class NamedMatrix(Matrix):
 		return row_index
 
 
-	def close_row(self, row_index: int):
-		super().close_row(row_index)
+	def close_row(self, row_index, clear=True):
+		super().close_row(row_index, clear=clear)
 
 		row_name = self.I2NMap.pop(row_index)
 		del self.N2IMap[row_name]

[TimeWindowMatrix] close_row() got an unexpected keyword argument 'clear'
diff --git a/test/analyzer/test_time_window_matrix.py b/test/analyzer/test_time_window_matrix.py
index 5b663f46..8f8f3e9f 100644
--- a/test/analyzer/test_time_window_matrix.py
+++ b/test/analyzer/test_time_window_matrix.py
@@ -1,7 +1,4 @@
-import unittest
 import time
-import numpy as np
-import asab.abc.singleton
 
 import bspump
 import bspump.analyzer
@@ -45,6 +42,16 @@ class TestTimeWindowMatrix(bspump.unittest.TestCase):
 		row_index = matrix.add_row("abc")
 		self.assertEqual(matrix.Array.shape[0], matrix.WarmingUpCount.shape[0])
 
+
+	def test_matrix_close_row(self):
+		matrix = bspump.analyzer.TimeWindowMatrix(app=self.App, columns=3, clock_driven=False)
+		row_index = matrix.add_row("abc")
+		self.assertFalse(row_index in matrix.ClosedRows)
+		matrix.close_row(row_index)
+		self.assertTrue(row_index in matrix.ClosedRows)
+		matrix.flush()
+		self.assertEqual(0, matrix.Array.shape[0])
+
 	
 	def test_matrix_get_column(self):
 		columns = 10

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov flake8
apt-get update apt-get install -y gcc unixodbc-dev
3.7
requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
aiohttp==3.8.6
aiokafka==0.8.0
aiomysql==0.0.22
aioodbc==0.3.3
aiopg==0.16.0
aioresponses==0.6.0
aiosignal==1.3.1
aiosmtplib==1.1.7
asab==19.11
async-timeout==4.0.3
asyncssh==2.0.1
asynctest==0.13.0
attrs==24.2.0
-e git+https://github.com/LibertyAces/BitSwanPump.git@5fb9f31d0aec0ff6d32c97a45c6a53abd41ab2cf#egg=bspump
cachetools==5.5.2
certifi @ file:///croot/certifi_1671487769961/work/certifi
cffi==1.15.1
charset-normalizer==3.4.1
coverage==7.2.7
cryptography==44.0.2
exceptiongroup==1.2.2
fastavro==0.24.2
fastjsonschema==2.21.1
flake8==5.0.4
frozenlist==1.3.3
google-api-core==2.24.2
google-api-python-client==1.12.11
google-auth==2.38.0
google-auth-httplib2==0.2.0
googleapis-common-protos==1.69.2
httplib2==0.22.0
idna==3.10
importlib-metadata==4.2.0
iniconfig==2.0.0
kafka-python==2.1.4
mccabe==0.7.0
mongoquery==1.4.2
motor==2.5.1
multidict==6.0.5
mysql-replication==0.25
numpy==1.21.6
packaging==24.0
pandas==0.25.3
pika==1.3.2
pluggy==1.2.0
proto-plus==1.26.1
protobuf==4.24.4
psycopg2-binary==2.9.9
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycodestyle==2.9.1
pycparser==2.21
pyflakes==2.5.0
pymongo==3.13.0
PyMySQL==0.9.2
pyodbc==4.0.39
pyparsing==3.1.4
pytest==7.4.4
pytest-cov==4.1.0
python-dateutil==2.9.0.post0
pytz==2019.3
requests==2.31.0
rsa==4.9
six==1.17.0
tomli==2.0.1
typing_extensions==4.7.1
uritemplate==3.0.1
urllib3==2.0.7
yarl==1.9.4
zipp==3.15.0

name: BitSwanPump
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - aiohttp==3.8.6
      - aiokafka==0.8.0
      - aiomysql==0.0.22
      - aioodbc==0.3.3
      - aiopg==0.16.0
      - aioresponses==0.6.0
      - aiosignal==1.3.1
      - aiosmtplib==1.1.7
      - asab==19.11
      - async-timeout==4.0.3
      - asyncssh==2.0.1
      - asynctest==0.13.0
      - attrs==24.2.0
      - cachetools==5.5.2
      - cffi==1.15.1
      - charset-normalizer==3.4.1
      - coverage==7.2.7
      - cryptography==44.0.2
      - exceptiongroup==1.2.2
      - fastavro==0.24.2
      - fastjsonschema==2.21.1
      - flake8==5.0.4
      - frozenlist==1.3.3
      - google-api-core==2.24.2
      - google-api-python-client==1.12.11
      - google-auth==2.38.0
      - google-auth-httplib2==0.2.0
      - googleapis-common-protos==1.69.2
      - httplib2==0.22.0
      - idna==3.10
      - importlib-metadata==4.2.0
      - iniconfig==2.0.0
      - kafka-python==2.1.4
      - mccabe==0.7.0
      - mongoquery==1.4.2
      - motor==2.5.1
      - multidict==6.0.5
      - mysql-replication==0.25
      - numpy==1.21.6
      - packaging==24.0
      - pandas==0.25.3
      - pika==1.3.2
      - pluggy==1.2.0
      - proto-plus==1.26.1
      - protobuf==4.24.4
      - psycopg2-binary==2.9.9
      - pyasn1==0.5.1
      - pyasn1-modules==0.3.0
      - pycodestyle==2.9.1
      - pycparser==2.21
      - pyflakes==2.5.0
      - pymongo==3.13.0
      - pymysql==0.9.2
      - pyodbc==4.0.39
      - pyparsing==3.1.4
      - pytest==7.4.4
      - pytest-cov==4.1.0
      - python-dateutil==2.9.0.post0
      - pytz==2019.3
      - requests==2.31.0
      - rsa==4.9
      - six==1.17.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - uritemplate==3.0.1
      - urllib3==2.0.7
      - yarl==1.9.4
      - zipp==3.15.0
prefix: /opt/conda/envs/BitSwanPump

test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix_close_row
test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix_add_column test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix_add_row test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix_advance test/analyzer/test_time_window_matrix.py::TestTimeWindowMatrix::test_matrix_get_column
bspump/matrix/matrix.py
bspump/matrix/matrix.py