Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a Telonics Parameter File (TPF) may require reprocessing some collar files #38

Open
regan-sarwas opened this issue Nov 25, 2020 · 1 comment

Comments

@regan-sarwas
Copy link
Member

Current Behavior:
If a collar, with existing parameters without an end date (typical) is redeployed with new parameters, but the new parameters are not added to the database, the database will process the collar file with the older TPF file. This may produce an incorrect CSV file with no locations (and no errors!). For example BBorg's collar 694025 deployed on 2020-11-13 produced on locations until the correct TPF file was loaded 2020-11-24. (the incorrect CSV files were manually deleted and files reprocessed).

Preferred Behavior:
When a new TPF file is loaded, find all collar files that 1) have derived CSV files and 2) would have been processed with the new TPF file had it existed when the file was processed. Then delete all the derived CSV files for those collar files. The files will automatically be reprocessed on the next run of the 'ArgosProcessor.exe'

@regan-sarwas
Copy link
Member Author

In the meantime here is a workaround:
In the animal movements application 1) upload the new TPF file and assign it to the collar. 2) go to the collar details dialog (double click the collar in the PI's list). On the files tab, sort the files with newest on top. Record the fileid of the files that were incorrectly processed. In SSMS or Data Studio, execute the following queries:

-- Check the list of files
-- replace xxx, yyy, zzz with the fileids from the previous step
select * from collarfiles where fileid in (xxx, yyy, zzz) and Format = 'C' and ParentFileID is not null
-- delete the 'broken' files
-- replace xxx, yyy, zzz with the fileids from the previous step
delete from collarfiles where fileid in (xxx, yyy, zzz) and Format = 'C' and ParentFileID is not null

Within 10 minutes the file will be regenerated.

If you do not feel comfortable with the SQL queries, then you can look for and delete the files by name in the files list on the PI dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant