Skip to content

Commit 2e36b00

Browse files
v1 Documentation fixes (TGSAI#484)
* Fix warning for duplicate definition of link * Fix missing close curly brace * Updated types to avoid removed numpy construct * General cleaning * Revert notebook changes to avoid conflicts with main * Fix missing dtypes * Update src/mdio/schema/dtype.py --------- Co-authored-by: Altay Sansal <[email protected]>
1 parent 68d0ff6 commit 2e36b00

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

docs/cli_usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ extra protocol. For the above example it would look like this:
208208
In one line:
209209

210210
```json
211-
{"s3": {"key": "my_super_private_key", "secret": "my_super_private_secret"}, "simplecache": {"cache_storage": "/custom/temp/storage/path"}
211+
{"s3": {"key": "my_super_private_key", "secret": "my_super_private_secret"}, "simplecache": {"cache_storage": "/custom/temp/storage/path"}}
212212
```
213213

214214
## CLI Reference

src/mdio/commands/segy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
following, per the SEG-Y Rev1 standard:
4343
4444
\b
45-
`--header-names inline,crossline
45+
--header-names inline,crossline
4646
--header-locations 189,193
4747
--header-types int32,int32
4848

src/mdio/schema/dtype.py

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,27 @@
1515

1616

1717
ALLOWED_TYPES = [
18-
np.sctypes["others"][0].__name__, # boolean # noqa: NPY201
19-
*[t.__name__ for t in np.sctypes["int"]], # noqa: NPY201
20-
*[t.__name__ for t in np.sctypes["uint"]], # noqa: NPY201
21-
*[t.__name__ for t in np.sctypes["float"]], # noqa: NPY201
22-
*[t.__name__ for t in np.sctypes["complex"]], # noqa: NPY201
18+
# Boolean
19+
np.bool_.__name__,
20+
# Signed integers
21+
np.int8.__name__,
22+
np.int16.__name__,
23+
np.int32.__name__,
24+
np.int64.__name__,
25+
# Unsigned integers
26+
np.uint8.__name__,
27+
np.uint16.__name__,
28+
np.uint32.__name__,
29+
np.uint64.__name__,
30+
# Floating point
31+
np.float16.__name__,
32+
np.float32.__name__,
33+
np.float64.__name__,
34+
np.float128.__name__,
35+
# Complex
36+
np.complex64.__name__,
37+
np.complex128.__name__,
38+
np.clongdouble.__name__,
2339
]
2440

2541

0 commit comments

Comments
 (0)