Skip to content

Commit

Permalink
Merge pull request #31 from team4099/2024-setup
Browse files Browse the repository at this point in the history
2024 setup
  • Loading branch information
Shom770 authored Feb 19, 2024
2 parents 34513e6 + 24ce9b6 commit dd2b8c8
Show file tree
Hide file tree
Showing 11 changed files with 7,107 additions and 1,831 deletions.
10 changes: 9 additions & 1 deletion falconscoutcore/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@ def _convert_string_to_proper_type(value: str) -> Any:
try:
return literal_eval(value)
except (ValueError, SyntaxError):
<<<<<<< HEAD
return value

=======
if value == "false":
return False
elif value == "true":
return True

return value.replace(",", "").replace("'", "").split(":")[0]
>>>>>>> 808c490 (changes to add parked to app)


def _process_data(*data: list[str], status_message_col) -> None:
Expand Down Expand Up @@ -168,7 +177,6 @@ def scan_qrcode(qr_code_col) -> None:
status_message_col=qr_code_col,
)


def write_dataval_errors(data_val_col) -> None:
"""Writes the data validation errors contained in `errors.json` into the column."""
with (
Expand Down
30 changes: 15 additions & 15 deletions falconscoutcore/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
"Alliance",
"DriverStation",
"TeamNumber",
"Preloaded",
"AutoGrid",
"AutoMissed",
"Mobile",
"AutoAttemptedCharge",
"AutoChargingState",
"AutoSpeaker",
"AutoAmp",
"AutoLeave",
"AutoCenterline",
"AutoNotes",
"TeleopGrid",
"TeleopMissed",
"TeleopSpeaker",
"TeleopAmp",
"TeleopTrap",
"TeleopNotes",
"EndgameAttemptedCharge",
"EndgameFinalCharge",
"FinalChargeTime",
"Parked",
"ClimbStatus",
"Harmonized",
"ClimbSpeed",
"EndgameNotes",
"Disable",
"Tippy",
"DefenseTime",
"DefenseRating",
"Disabled",
"DriverRating",
"DefenseTime",
"DefenseSkill",
"CounterDefenseSkill",
"RatingNotes"
],
"qualitative_data_labels": [
Expand Down
1 change: 1 addition & 0 deletions falconscoutcore/data/2024vaash_match_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Empty file.
Loading

0 comments on commit dd2b8c8

Please sign in to comment.