Skip to content

Commit

Permalink
Remove Float16 exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 7, 2025
1 parent 80f28c4 commit 8f0a252
Showing 1 changed file with 4 additions and 40 deletions.
44 changes: 4 additions & 40 deletions crates/store/re_types/tests/types/fuzzy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,7 @@ fn roundtrip() {
// NOTE: Keep those around please, very useful when debugging.
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name() == "rerun.testing.components.AffixFuzzer21" {
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!(
"{} = Can't be printed (float16 not supported)",
field.name()
);
} else {
eprintln!("{} = {array:#?}", field.name());
}
eprintln!("{} = {array:#?}", field.name());
}

let deserialized = AffixFuzzer1::from_arrow(serialized).unwrap();
Expand Down Expand Up @@ -283,16 +274,7 @@ fn roundtrip() {
// NOTE: Keep those around please, very useful when debugging.
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name() == "rerun.testing.components.AffixFuzzer21" {
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!(
"{} = Can't be printed (float16 not supported)",
field.name()
);
} else {
eprintln!("{} = {array:#?}", field.name());
}
eprintln!("{} = {array:#?}", field.name());
}

let deserialized = AffixFuzzer2::from_arrow(serialized).unwrap();
Expand All @@ -319,16 +301,7 @@ fn roundtrip() {
// NOTE: Keep those around please, very useful when debugging.
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name() == "rerun.testing.components.AffixFuzzer21" {
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!(
"{} = Can't be printed (float16 not supported)",
field.name()
);
} else {
eprintln!("{} = {array:#?}", field.name());
}
eprintln!("{} = {array:#?}", field.name());
}

let deserialized = AffixFuzzer3::from_arrow(serialized).unwrap();
Expand All @@ -355,16 +328,7 @@ fn roundtrip() {
// NOTE: Keep those around please, very useful when debugging.
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name() == "rerun.testing.components.AffixFuzzer21" {
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!(
"{} = Can't be printed (float16 not supported)",
field.name()
);
} else {
eprintln!("{} = {array:#?}", field.name());
}
eprintln!("{} = {array:#?}", field.name());
}

let deserialized = AffixFuzzer4::from_arrow(serialized).unwrap();
Expand Down

0 comments on commit 8f0a252

Please sign in to comment.