import: Columns are now rewritten in OBI_FLOAT if a value is > INT32_MAX

This commit is contained in:
MercierC
2021-03-29 09:00:52 +13:00
parent 6d445fe3ad
commit 3e93cfff7b
4 changed files with 10 additions and 5 deletions

View File

@ -371,8 +371,8 @@ def run(config):
# Fill value
dcols[tag][0][i] = value
except IndexError :
except (IndexError, OverflowError):
value_type = type(value)
old_column = dcols[tag][0]
old_nb_elements_per_line = old_column.nb_elements_per_line
@ -419,7 +419,7 @@ def run(config):
dcols[tag][0][i] = value
except Exception as e:
print("\nCould not import sequence id:", entry.id, "(error raised:", e, ")")
print("\nCould not import sequence:", entry, "(error raised:", e, ")")
if 'skiperror' in config['obi'] and not config['obi']['skiperror']:
raise e
else: