Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated panels_data.py to match the new layout #39

Merged
merged 18 commits into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions scripts/panels_data/panels_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def create_panel_table(db_user, db_password, db_host, db_name):
Column("height", Float(), nullable=False),
Column("area", Float(), nullable=False),
)
panel_area = 0.0153
panel_area = 0.015333

# drop if exists
panel_table.drop(engine, checkfirst=True)
Expand Down Expand Up @@ -80,13 +80,13 @@ def create_panel_table(db_user, db_password, db_host, db_name):
},
{
"name": "Back Middle 1",
"stack": 3,
"stack": 6,
"efficiency": 0.25,
"num_panels": 12,
"num_panels": 8,
"tilt": -8.06,
"width": 0.25,
"height": 0.75,
"area": 12 * panel_area,
"height": 0.5,
"area": 8 * panel_area,
},
{
"name": "Back Left 2",
Expand Down Expand Up @@ -179,7 +179,17 @@ def create_panel_table(db_user, db_password, db_host, db_name):
"area": 21 * panel_area,
},
{
"name": "Front Middle",
"name": "Front Middle 1",
"stack": 6,
"efficiency": 0.25,
"num_panels": 5,
"tilt": 8.75,
"width": 0.125,
"height": 0.75,
"area": 5 * panel_area,
},
{
"name": "Front Middle 2",
"stack": 11,
"efficiency": 0.25,
"num_panels": 16,
Expand Down
Loading