Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
### Changed
### Deprecated
### Removed
### Fixed
- Fixed bug where VariableInfo equality fails when _FillValue is np.nan
### Security

## [0.1.0]

### Added
Expand Down
6 changes: 5 additions & 1 deletion podaac/merger/variable_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Wrapper used to manage variable metadata"""
import numpy as np


class VariableInfo:
Expand Down Expand Up @@ -46,6 +47,9 @@ def __eq__(self, other):
self.dim_order == other.dim_order and
self.datatype == other.datatype and
self.name == other.name and
self.fill_value == other.fill_value and
(
self.fill_value == other.fill_value or
np.array_equal(self.fill_value, other.fill_value, equal_nan=True)
) and
self.group_path == other.group_path
)
Loading