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

Regex fix

parent e4f40a96
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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