diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a01dc6a62ad1d8f742941a9449d53fb5cc1e451e..c4d80d94d1308bfad3f44ff85a3625908c826817 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ deploy-to-testpypi: script: - pip install twine - python setup.py sdist bdist_wheel - - twine upload -u $PYPI_TEST_USER -p $PYPI_TEST_PASSWORD --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* + - twine upload -u "__token__" -p "$PYPI_TEST_PASSWORD" --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* install-from-testpypi: stage: test_install @@ -55,4 +55,4 @@ deploy-to-pypi: script: - pip install twine - python setup.py sdist bdist_wheel - - twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing dist/* \ No newline at end of file + - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/* \ No newline at end of file diff --git a/VERSION b/VERSION index f41669421125011885f54548ea92bdb602bda2b9..16df2afe305549a19b9cc3123aea9c2eff151ddb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2023.4 \ No newline at end of file +2023.4.1 \ No newline at end of file diff --git a/enstools/encoding/variable_encoding.py b/enstools/encoding/variable_encoding.py index b9ef7f3f835bc3117f0e738c32656c66949d6c08..9691946ba61637432764fe29a062d1cde18c02c8 100644 --- a/enstools/encoding/variable_encoding.py +++ b/enstools/encoding/variable_encoding.py @@ -54,6 +54,19 @@ class Encoding(_Mapping): def __repr__(self): return f"{self.__class__.__name__}({self.to_string()})" + + def set_chunk_sizes(self, chunk_sizes: tuple) -> None: + """ + Method to add chunksizes into the encoding dictionary. + Parameters + ---------- + chunk_sizes + + Returns + ------- + + """ + self._kwargs["chunksizes"] = chunk_sizes def set_chunk_sizes(self, chunk_sizes: tuple) -> None: """