diff --git a/clean_nist_files/Readme.md b/clean_nist_files/Readme.md index e783c085e2cbf710014c8043d31d735b147dfe3e..398d07ca61df15c2a28ad2f6f757247f2035da12 100644 --- a/clean_nist_files/Readme.md +++ b/clean_nist_files/Readme.md @@ -157,3 +157,13 @@ Once the script has been read and updated as needed, it can be run with a `pytho This script will take one directory as input, load all the files, remove all the PII informations, and write the files in a second directory. +# Check the cleaning process + +To check the content of the NIST file, use the `check_nist_file.py` script. +This file should be updated to point the `nist_file_path` to the file on disk. + +By printing the `nist_file` object, the content of the file is outputted to the console. +All the fields are displayed, on the left the field tag, and on the right the content of the field. + +If one field present in the output should be delete, update the `clean_files.py` file accordingly. + diff --git a/clean_nist_files/check_nist_file.py b/clean_nist_files/check_nist_file.py new file mode 100644 index 0000000000000000000000000000000000000000..a414743b751e455763ec03f3f9685004523afe07 --- /dev/null +++ b/clean_nist_files/check_nist_file.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + +from NIST import NISTf + +nist_file_path = "" + +nist_file = NISTf( nist_file_path ) + +print( nist_file ) +