Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2012-05-04 09:38:23
Size: 2755
Editor: Fernanda
Comment:
Revision 5 as of 2012-06-07 08:47:12
Size: 2755
Editor: Valentina
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
'''CheckLinks.py'''will perform a series of checks in your format 202 link file to ensure that the data is all right. If no errors are detected then a zip file will be created. The zip file represents your checked links file ready to send to Interbull. '''CheckLinks.py''' will perform a series of checks in your format 202 link file to ensure that the data is all right. If no errors are detected then a zip file will be created. The zip file represents your checked links file ready to send to Interbull.
Line 7: Line 7:
The checks interest: The checks relate to:
Line 12: Line 12:
  * Correct three digits country code as in the ISO 3166 standard
  * Correct three digits breed code according to the Interbull breed codes
  * Allowed breed-country combination<<BR>>  - see file CheckLinksAuth.txt (created by the program)
  * Correct construction of the numerical part of the ID (registration  numbers, right justified, leading blanks as zeros)
  * Correct three digit country code as in the ISO 3166 standard
  * Correct three digit breed code according to the Interbull breed codes
  * Allowed breed-country combination<<BR>>     - see file CheckLinksAuth.txt (created by the program)
  * Correct construction of the numerical part of the ID (registration  numbers, right justified, leading blanks as zeros)
Line 22: Line 22:
 1. Download the CheckLinks.py program from [[https://itbc-data.hgen.slu.se:4822/ideaweb/idea/software|https://idea.interbull.org/software]] FIXME and copy in your new directory  1. Download the CheckLinks.py program from [[https://itbc-data.hgen.slu.se:4822/ideaweb/idea/software|https://idea.interbull.org/software]] FIXME and copy it to your new directory
Line 27: Line 27:
 * Use the command: '''python CheckLinks.py -m <ORGCODE> –f <filename>'''  * Use the command: '''python CheckLinks.py -m <ORGCODE> -f <filename>'''
Line 44: Line 44:
If you need assistance, please do not hesitate to contact us at interbull-hgen@slu.se. If you need assistance, please do not hesitate to contact us at interbull-hgen@slu.se .

README for CheckLinks.py

Updated: 2012-04-28

Information about the program:

CheckLinks.py will perform a series of checks in your format 202 link file to ensure that the data is all right. If no errors are detected then a zip file will be created. The zip file represents your checked links file ready to send to Interbull.

The checks relate to:

  • Record type: must be 202
  • Record length: must be 44
  • International identification numbers (first ID, second ID)
    • Correct three digit country code as in the ISO 3166 standard
    • Correct three digit breed code according to the Interbull breed codes
    • Allowed breed-country combination
      - see file CheckLinksAuth.txt (created by the program)

    • Correct construction of the numerical part of the ID (registration numbers, right justified, leading blanks as zeros)
    • UUUUUUUUUUUUUUUUUUU (19 U's) is only allowed for the second ID
  • Sex code of the two IDs (they must be the same and M or F)

Before Running the Program:

  1. Install Python (version 2.5 to 2.7) if necessary

  2. Create a working directory/folder
  3. Download the CheckLinks.py program from https://idea.interbull.org/software FIXME and copy it to your new directory

  4. Copy your pedigree link file to the working directory

Running the Program:

  • Ensure there is a working network connection
  • Use the command: python CheckLinks.py -m <ORGCODE> -f <filename>

  • Use your uppercase ORGCODE as shown on the software download page.
  • The program checks its internal version with the value stored on the Interbull server. You will have to download the most recent version if there is a mismatch.

After Running the Program:

If no errors are detected, the pedigree file will be written into a zip file called IB202-org_code-yyyymmddThhmmss.zip. Upload the zip file to Interbull's data exchange site https://idea.interbull.org/

In case of errors, no zip file will be created. Please correct your data and re-run the program until the data successfully pass all required checks.

A summary of errors is written to the file CheckLinksLog.txt.

All errors are listed in detail in the file called CheckLinksErrors.txt.


Note:

Please do not modify the program to circumvent any checks. Doing so would be pointless because the same checking routine is used again at the Interbull Centre to double-check the link file uploaded in the zip file.

If you need assistance, please do not hesitate to contact us at interbull-hgen@slu.se .

public/checklinks_python_instructions (last edited 2021-09-03 10:20:37 by Valentina)