Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 2.19 KB

README.md

File metadata and controls

40 lines (29 loc) · 2.19 KB

Project Notes

Starting a Project:

  • I will assume you have Anaconda, and you have cloned this repository with

git clone https://github.com/mzurzolo/STBS.git

  • I will provide a quick command to get you to the project. example: cd ~/STBS/Python/Projects/project1

    and a 'setup script' to automate some setup tasks. This script will always be called work_here.sh, and the command to run it is: source work_here.sh

Project Layout:

  • Each project will be in its own folder, under STBS/Python/Projects

  • Each project folder will contain:

    • A setup script for the project: work_here.sh

    • The main program file/the starting point of the project. It will end in .py: project1.py

    • A backup of the project file, just in case: project1.backup.py

    • Input and output folders, if necessary: inputs outputs

    • An instruction page meant to be viewed as a webpage: README.md

    • A file that names python packages required for the project: requirements.txt

    • A python 'virtual environment' folder: py3

      • Virtual environments are great for setting up sandboxes to work in
      • They provide project consistency
      • They're easy to create
      • It doesn't matter if they get deleted (since they can be re-generated so easily)
      • I use them in these lessons to show you how/provide a working example (they're not totally necessary in small projects, but they keep things clean, and it's a good habit to build)
      • I automate their use here so you can ignore it if you want to. Virtual environment setup is one of the steps in work_here.sh
      • I may write up a lesson on environment and package management eventually

Documentation:

  • Documentation is like a User's/Owner's manual
  • Most software packages/products have documentation
  • Good documentation includes quick start guides, examples, and a description of how to use the software (called an API)
  • Relevant documentation will be linked in project directions, and in the comments of the projects themselves (comments are lines in a computer program that the computer ignores. They're notes to the programmer. Comments in python start with a # or have triple quotes around them)