Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Dec 29, 2024
1 parent dfc83ed commit 502d389
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docs/Library/Section/Code/converter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -65,6 +65,8 @@
"metadata": {},
"outputs": [],
"source": [
"hss_sections = []\n",
"\n",
"for _, row in section_table[\n",
" section_table[\"AISC_Manual_Label\"].str.startswith(\"HSS\")\n",
"].iterrows():\n",
Expand All @@ -76,15 +78,26 @@
" if ht == \"\":\n",
" continue\n",
"\n",
" hss_sections.append(designation)\n",
"\n",
" print(\n",
" f'if(is_equal(type, \"{designation}\")) return {{{b-tdes:.3f}, {ht-tdes:.3f}, {tdes:.3f}}};'\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(\",\".join(hss_sections))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -98,7 +111,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 502d389

Please sign in to comment.