Start boiler plate

This commit is contained in:
Cal Wing 2025-02-14 20:18:03 +01:00
parent fc325da07b
commit 7ef0d2cb38
3 changed files with 37 additions and 1 deletions

2
.vscode/launch.json vendored
View File

@ -10,7 +10,7 @@
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": ["--debug", "--data-path", "./data"]
"args": ["--debug"]
}
]
}

36
a1.py
View File

@ -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!")

Binary file not shown.