django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

BUG: upload fails with Char(*) type #164

Closed agy-why closed 1 year ago

agy-why commented 1 year ago

added the char(*) catch for upload

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 4415831261


Changes Missing Coverage Covered Lines Changed/Added Lines %
daiquiri/core/adapter/database/base.py 0 3 0.0%
<!-- Total: 0 3 0.0% -->
Totals Coverage Status
Change from base Build 4415820434: -0.02%
Covered Lines: 4687
Relevant Lines: 7303

💛 - Coveralls
agy-why commented 1 year ago

we could use:

for field in table.fields:
    print(f"{field.datatype=} {field.arraysize=}")

instead of

for np_dtype in table.array.dtype:
    print(f"{np_dtype=}")

and

row = table.array[0]
for cell in row:
    print(f"{cell.dtype=}")