Skip to content

Commit

Permalink
Run prettier on test stats as well (#329)
Browse files Browse the repository at this point in the history
* add stats to prettier

* skip problematic test
  • Loading branch information
zigaLuksic authored Feb 7, 2024
1 parent 2814092 commit febdd59
Show file tree
Hide file tree
Showing 40 changed files with 1,212 additions and 6,535 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude: "tests/(test_stats|test_project)/"
exclude: "tests/test_project/"
types_or: [json]

- repo: https://github.com/psf/black
Expand Down
136 changes: 16 additions & 120 deletions tests/test_stats/download_and_batch/batch_to_eopatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
"bbox": "BBox(((729480.0, 4390045.0), (732120.0, 4391255.0)), crs=CRS('32638'))",
"data": {
"bands": {
"array_shape": [
7,
300,
200,
3
],
"array_shape": [7, 300, 200, 3],
"basic_stats": {
"max": 1234.38,
"mean": 617.189,
Expand All @@ -23,36 +18,15 @@
"dtype": "float32",
"histogram": {
"counts": [
157086,
157534,
157504,
158241,
157351,
157494,
157391,
157399
157086, 157534, 157504, 158241, 157351, 157494, 157391, 157399
],
"edges": [
0.0,
154.297,
308.594,
462.891,
617.188,
771.485,
925.782,
1080.08,
0.0, 154.297, 308.594, 462.891, 617.188, 771.485, 925.782, 1080.08,
1234.38
]
},
"random_values": [
88.3902,
949.824,
1209.32,
265.664,
939.578,
357.388,
668.235,
609.102
88.3902, 949.824, 1209.32, 265.664, 939.578, 357.388, 668.235, 609.102
],
"subsample_basic_stats": {
"max": 1234.38,
Expand All @@ -63,12 +37,7 @@
}
},
"bands_repeated": {
"array_shape": [
7,
300,
200,
3
],
"array_shape": [7, 300, 200, 3],
"basic_stats": {
"max": 1234.38,
"mean": 617.189,
Expand All @@ -83,36 +52,15 @@
"dtype": "float32",
"histogram": {
"counts": [
157086,
157534,
157504,
158241,
157351,
157494,
157391,
157399
157086, 157534, 157504, 158241, 157351, 157494, 157391, 157399
],
"edges": [
0.0,
154.297,
308.594,
462.891,
617.188,
771.485,
925.782,
1080.08,
0.0, 154.297, 308.594, 462.891, 617.188, 771.485, 925.782, 1080.08,
1234.38
]
},
"random_values": [
88.3902,
949.824,
1209.32,
265.664,
939.578,
357.388,
668.235,
609.102
88.3902, 949.824, 1209.32, 265.664, 939.578, 357.388, 668.235, 609.102
],
"subsample_basic_stats": {
"max": 1234.38,
Expand Down Expand Up @@ -140,12 +88,7 @@
"bbox": "BBox(((729480.0, 4391145.0), (732120.0, 4392355.0)), crs=CRS('32638'))",
"data": {
"bands": {
"array_shape": [
7,
300,
200,
3
],
"array_shape": [7, 300, 200, 3],
"basic_stats": {
"max": 1234.38,
"mean": 617.189,
Expand All @@ -160,36 +103,15 @@
"dtype": "float32",
"histogram": {
"counts": [
157086,
157534,
157504,
158241,
157351,
157494,
157391,
157399
157086, 157534, 157504, 158241, 157351, 157494, 157391, 157399
],
"edges": [
0.0,
154.297,
308.594,
462.891,
617.188,
771.485,
925.782,
1080.08,
0.0, 154.297, 308.594, 462.891, 617.188, 771.485, 925.782, 1080.08,
1234.38
]
},
"random_values": [
88.3902,
949.824,
1209.32,
265.664,
939.578,
357.388,
668.235,
609.102
88.3902, 949.824, 1209.32, 265.664, 939.578, 357.388, 668.235, 609.102
],
"subsample_basic_stats": {
"max": 1234.38,
Expand All @@ -200,12 +122,7 @@
}
},
"bands_repeated": {
"array_shape": [
7,
300,
200,
3
],
"array_shape": [7, 300, 200, 3],
"basic_stats": {
"max": 1234.38,
"mean": 617.189,
Expand All @@ -220,36 +137,15 @@
"dtype": "float32",
"histogram": {
"counts": [
157086,
157534,
157504,
158241,
157351,
157494,
157391,
157399
157086, 157534, 157504, 158241, 157351, 157494, 157391, 157399
],
"edges": [
0.0,
154.297,
308.594,
462.891,
617.188,
771.485,
925.782,
1080.08,
0.0, 154.297, 308.594, 462.891, 617.188, 771.485, 925.782, 1080.08,
1234.38
]
},
"random_values": [
88.3902,
949.824,
1209.32,
265.664,
939.578,
357.388,
668.235,
609.102
88.3902, 949.824, 1209.32, 265.664, 939.578, 357.388, 668.235, 609.102
],
"subsample_basic_stats": {
"max": 1234.38,
Expand Down
Loading

0 comments on commit febdd59

Please sign in to comment.