Python script to utilize given CPT data for preliminary liquifiction analysis and output the data in excel file and a plotting them using matplotlib.
- Powershell(Windows), Ubuntu Terminal(Windows Subsystem Linux version) or Terminal(macOS)
- An IDE:
- Package Managers:
- Homebrew
- pip - Install Python3 using pip
- python3+ - CHECK your current python version by
python --version
- General Syntax
- You don’t have to know much other than some basic stuff
- It’s always a good idea to look into documentation if you use something from a library
- Try thinking everything in your PLAIN language first, then translate it to what you need to do.
- Functions
- Always a good idea to break down your code into sections called “functions”. Very similar to how Math functions work.
- Don’t put too many things in your main function.
- Bugs and Workarounds
- Opensource problems. At any rate, in a workplace, you will be expected to find a solution or a workaround to any bugs that you face that doesn’t have an “official” bug fix.
- Syntax and sample exercises to get you familiar with Python:
- Setting up Python environment (Python 3+) May have to spend some time correctly setting it up. A lot of systems still use Python2.7
- You may be required to download additional things like Python Linter and other extensions based on the IDE you use. Autocompletion is helpful
- https://kite.com/ <- Helps with autocomplete snippets
- PyCodeStyle is a good linter. It can be annoying sometimes, but is helpful with neatness!
- https://github.com/psf/black <- makes your script look pretty, very aggressive though!
- If you come across weird errors, just google them! Chances are people faced the same kind of problems. StackOverflow and google is your best friend.
- A little bit of shell commands like ls, sudo(careful!!!), cd