From 7ef0d2cb38032f6e0a0b0add05529fd6ae87ec69 Mon Sep 17 00:00:00 2001 From: Cal Wing Date: Fri, 14 Feb 2025 20:18:03 +0100 Subject: [PATCH] Start boiler plate --- .vscode/launch.json | 2 +- a1.py | 36 ++++++++++++++++++++++++++++++++++++ requirements.txt | Bin 494 -> 232 bytes 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 902091f..dff7fc0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "program": "${file}", "console": "integratedTerminal", - "args": ["--debug", "--data-path", "./data"] + "args": ["--debug"] } ] } \ No newline at end of file diff --git a/a1.py b/a1.py index 8cfb010..942ae92 100644 --- a/a1.py +++ b/a1.py @@ -2,6 +2,42 @@ # A1 Attempt 1 # 14/02/25 +# These could be from the std math lib, but I like the numpy ones better personally +from numpy import sin, cos, pi + +# Fill these in with your details +__author__ = "Cal Wing" +__email__ = "cal@wing.id.au" +__date__ = "14/02/2025" +__version__ = "1.0.0" + + +# I have some useful things setup and wanted to play with python's arg parse +# This is not in any way apart of the assignment. +# This is to override consts / funcs as needed +# It is not impactful on the assignment and can be removed with no consequence +if __name__ == "__main__": + import argparse + + # This is purely here to allow for my personal quirks + arg_parser = argparse.ArgumentParser(description="ENGG1001 Assignment 1") + arg_parser.add_argument("--debug", help="Enable debug mode", default=False, required=False, action=argparse.BooleanOptionalAction) + + args, unknown = arg_parser.parse_known_args() + + # Only import the debug_lib (and override the input func) if debug mode is enabled + if args.debug: + print("Debug mode enabled - Using debug input...") + import makeGraph + from makeGraph import makeGraph, UQ_COLOURS as UQC + #from debug_lib import auto_input + #input_cases = [] + #input = auto_input(input_cases) + + + +# ============== Assignment Starts Here ============== + def main(): print("Hello World!") diff --git a/requirements.txt b/requirements.txt index 8be09de931ba1dac5dfea9f6801bbfab7c021193..34cdd512247fcbdbb0bdabfdfbafdf11320b9f4b 100644 GIT binary patch literal 232 zcmW-bu@1s83`F<*3s%yW76uROAh9xrP$0ssL*r8V_c)Bcdw#mW#FHO9qJ;)p6L=J! zr?etEsKJ@A2I{9$yGqZy_QFgVv4L$1*1X~pGt;L)P8~ZlcuB-U@rtMltI#+PMOi@w zwMjm_{3DJJ4H~FSibTBVw*#kaT9cphzpj;c8pxB!&CN?cOQfRNgN4LdtU0fj!|8~q VQ&g4Xx2$lTdgOf@%F4D=#}AVsMP&d0 literal 494 zcmZ9J$qs@*5Jc;2;-^SN(dfaCaX}?)3gg1ht5rQCL_@kSUGu8CdB66kQLq|pQL;At zrihTRmKb9MDJnSj8&wx{rinS9v8F-OQCA?P;!B8a9^3pF7^29pHI+OPtb0n13=dXo zntM-^m$VCGDWzi$rFQHYc1D|1v0}|lRWWV(mv(6!?Q|hykDUF)_Z7QR&-hkbc|}IH zJRUZS?JC2@x`QYU(+&i^S6aWdG!ADnDok*&+$nQ8z9@oY6!woutI2ZVqAl}fKl%MV Z{k`S+47uc{&HTjSN~h9h{vQroe*p8lNPGYQ