Fix build time by *not* converting from double to float on the fly

This commit is contained in:
Kilian Hofmann 2024-11-02 04:17:43 +01:00
parent f4577bcddd
commit a91493a744
3 changed files with 249 additions and 249 deletions

View File

@ -9502,7 +9502,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
@ -9515,7 +9515,7 @@
" lut.writelines(\"\\t{\\n\")\n",
" for weight in weights_index:\n",
" try:\n",
" lut.writelines(\"\\t\\t{\" + \",\".join(\"{:.3f}\".format(round(x, 3)) for x in curves[mach][alt][weight][0].tolist()) + \"},\\n\")\n",
" lut.writelines(\"\\t\\t{\" + \",\".join(\"{:.3f}f\".format(round(x, 3)) for x in curves[mach][alt][weight][0].tolist()) + \"},\\n\")\n",
" except IndexError:\n",
" lut.writelines(\"\\t\\tNULL,\\n\")\n",
" lut.writelines(\"\\t},\\n\")\n",
@ -9560,7 +9560,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long