Files
BBGradebookOrganiser/docs/inspect/usage.md

54 lines
2.4 KiB
Markdown
Raw Normal View History

2024-04-26 21:00:50 +01:00
# **Using Inspect by hash** :mag:
2024-04-26 21:00:50 +01:00
## **Requirements**
Before running the *inspect* scripts for the first time, you also need to install the *pandas* package:
2023-12-08 14:01:48 +00:00
```console
python -m pip install pandas
```
2024-04-26 21:00:50 +01:00
## **Inspect gradebook**
2023-07-17 03:17:43 +01:00
If you haven't already, extract the downloaded from *Blackboard* gradebook in a new directory inside *BB_gradebooks*
2023-07-17 03:17:43 +01:00
- e.g. for `AssignmentX` extract the gradebook in *BB_gradebooks*/`AssignmentX`
2023-03-10 17:40:37 +00:00
To inspect a *gradeboook* run **`inspect_gradebook.py`** and provide the name of the gradebook directory as an argument, e.g. for the gradebook `AssignmentX` run:
2023-12-08 14:01:48 +00:00
```console
python inspect_gradebook.py AssignmentX
```
**Note:** run ***before*** organising a gradebook with *organise_gradebook.py* (or extract, again, the downloaded gradebook, if you want to inspect it after organising its submissions)
Generated CSV files can be found in directory `csv-inspect`, with the inspected gradebook's name as file name prefix - e.g. inspecting gradebook `AssignmentX` will create 2 CSV files:
- `AssignmentX_gradebook_file_hashes_[datetime].csv` - all files and their hashes
- `AssignmentX_gradebook_duplicate_[datetime].csv` - files with duplicate hashes
2024-04-26 21:00:50 +01:00
## **Inspect submissions**
To inspect *submissions* run **`inspect_submissions.py`** and provide the name of the directory with the *organised* gradebook submissions as an argument.
2023-07-17 03:17:43 +01:00
- e.g. for the organised gradebook `AssignmentX` (in *BB_submissions*/`AssignmentX`) run:
2023-12-08 14:01:48 +00:00
```console
python inspect_submissions.py AssignmentX
```
**Note:** run ***after*** organising a gradebook with *organise_gradebook.py*
Generated CSV files can be found in directory `csv-inspect`, with the inspected submission's name as file name prefix - e.g. inspecting submissions for `AssignmentX` will create 2 CSV files:
- `AssignmentX_submissions_file_hashes_[datetime].csv` - all files and their hashes
- `AssignmentX_submissions_duplicate_[datetime].csv` - files with duplicate hashes
*(Optional)* In order to exclude submission files from hashing, create a CSV file in directory `csv-inspect` to provide the file names to be excluded - e.g. for `AssignmentX` create:
- `AssignmentX_excluded.csv` with a column named `exclude_filename` and list the file names
**Note:** the directory *csv-inspect* is automatically created when you run *inspect_gradebook.py* or *inspect_submissions.py* - if you want to exclude files before the first run, you need to create it manually.