-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
highHigh-priority bug or issueHigh-priority bug or issuejurisdiction needTickets that directly impact users' ability to use our appTickets that directly impact users' ability to use our appstreamline eCRIssues for the Streamline eCR teamIssues for the Streamline eCR team
Description
What needs to be done
CDPH experienced some bugs running the anonymization script on Eve Everywoman and others. Only Eve Everyman worked.
Why it needs to be done
This is a blocker to CDPH getting more test data
Acceptance Criteria
- Recreate the bug
- Fix date_time error, such that the Anonymization script works end to end
- Reach out to CDPH team when fixed (Sri)
Technical Notes
Error
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Scripts\anonymize_eicr.exe\__main__.py", line 6, in <module>
sys.exit(main())
~~~~^^
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\__main__.py", line 29, in main
anonymize(args)
~~~~~~~~~^^^^^^
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\anonymize_eicr.py", line 203, in anonymize
anonymize_eicr_file(xml_file, debug=args.debug)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\anonymize_eicr.py", line 171, in anonymize_eicr_file
debug_output = _replace_sensitive_information(root, sensitive_tag_groups)
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\anonymize_eicr.py", line 132, in _replace_sensitive_information
replacement_mapping = tag_group.get_replacement_mapping()
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\data_cache.py", line 72, in get_replacement_mapping
return self._type.get_replacement_mapping(self._normalized_tag, self._group)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\490017\AppData\Local\Programs\Python\Python314\Lib\site-packages\eicr_anonymization\tags\Tag.py", line 446, in get_replacement_mapping
date_time = date_time - timedelta(seconds=cls.main_offset)
^^^^^^^^^
UnboundLocalError: cannot access local variable 'date_time' where it is not associated with a value
Additional context
[OPTIONAL, delete if not needed]
Include any additional context or information here that doesn't fit into other parts of the template
Metadata
Metadata
Assignees
Labels
highHigh-priority bug or issueHigh-priority bug or issuejurisdiction needTickets that directly impact users' ability to use our appTickets that directly impact users' ability to use our appstreamline eCRIssues for the Streamline eCR teamIssues for the Streamline eCR team