Skip to content

Commit

Permalink
zarrs_ome fix axis unit parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jul 31, 2024
1 parent 4ea36e4 commit af23f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- `zarrs_ome` fix axis unit parsing (broken in 0.5.3)

## [0.5.5] - 2024-07-31

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/bin/zarrs_ome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ fn run() -> Result<(), Box<dyn Error>> {
let mut axes: Vec<Axis> = Vec::with_capacity(array0.dimensionality());
let to_unit = |physical_unit: String| {
Some(
serde_json::from_str::<AxisUnit>(&physical_unit)
serde_json::from_value::<AxisUnit>(serde_json::json!(physical_unit))
.expect("Not a recognised physical unit"),
)
};
Expand Down

0 comments on commit af23f89

Please sign in to comment.