diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 5ba96c8..11660a3 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -91,7 +91,6 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} packages_dir: wheelhouse/ - verbose: true - name: Publish package to pypi uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 @@ -99,4 +98,3 @@ jobs: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} packages_dir: wheelhouse/ - verbose: true diff --git a/.github/workflows/stable-release-workflow.yml b/.github/workflows/stable-release-workflow.yml index 333980f..cd680a9 100644 --- a/.github/workflows/stable-release-workflow.yml +++ b/.github/workflows/stable-release-workflow.yml @@ -90,7 +90,6 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} packages_dir: wheelhouse/ - verbose: true - name: Publish package to pypi uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 @@ -98,4 +97,3 @@ jobs: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} packages_dir: wheelhouse/ - verbose: true diff --git a/tunits/core/cython/with_unit_value_array.pyx b/tunits/core/cython/with_unit_value_array.pyx index b8415f4..0e5066a 100644 --- a/tunits/core/cython/with_unit_value_array.pyx +++ b/tunits/core/cython/with_unit_value_array.pyx @@ -75,8 +75,9 @@ class ValueArray(WithUnit): def __array__(WithUnit self, dtype=None, copy: bool=False): if self.is_dimensionless: + # TODO: pass copy to np.asarray. return np.asarray(conversion_to_double(self.conv) * self.value, - dtype=dtype, copy=copy) + dtype=dtype) unit_array = np.full_like(self.value, self.unit, dtype=object) result = self.value * unit_array