Stored analysis_submission_url as an instance variable for re-use instead of calling _get_link every time we need it.
Changed the method from get_completed_amr_analysis_submission to get_completed_amr_analysis_results so that it return results instead of submissions. This will avoid requesting additional analysis call when checking if the analysis is of type AMR_DETECTION.
Added get_analysis_results_url method, which does not uses self._get_link() method but assumes what the endpoint is.
Additional Changes
Logging Messages, including adding date and time for each message
Summary of Changes
Lessen API calls
3 ways:
analysis_submission_url
as an instance variable for re-use instead of calling _get_link every time we need it.get_completed_amr_analysis_submission
toget_completed_amr_analysis_results
so that it return results instead of submissions. This will avoid requesting additional analysis call when checking if the analysis is of typeAMR_DETECTION
.get_analysis_results_url
method, which does not usesself._get_link()
method but assumes what the endpoint is.Additional Changes