Commit 20c621df authored by Alex Nunes's avatar Alex Nunes

Regex fix

parent e4f40a96
......@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [1.0.4]
### Fixed
- Fixed error raised when passing non-compatible data to `REI`
- Fixed test files
## [1.0.3]
### Fixed
......
......@@ -33,9 +33,9 @@ def REI(detections, deployments):
detections = detections.copy(deep=True)
if deployments.recovery_date.dtype != np.dtype('<M8[ns]'):
deployments['recovery_notes'] = deployments.recovery_date.str.extract(
'([A-Za-z\//:]+)', expand=False)
r'([A-Za-z\//:]+)', expand=False)
deployments.recovery_date = deployments.recovery_date.str.extract(
'(\d+-\d+-\d+)', expand=False)
r'(\d+-\d+-\d+)', expand=False)
deployments = deployments.replace('-', np.nan)
deployments.loc[deployments.recovery_date.isnull(
), 'recovery_date'] = deployments.last_download
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment