Skip to content

Commit d874576

Browse files
committed
CDA OMNI products have comma too...
Signed-off-by: Alexis Jeandet <[email protected]>
1 parent 5a0ce27 commit d874576

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

speasy/core/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ def epoch_to_datetime64(epoch_array: np.array) -> np.array:
190190
-------
191191
np.array
192192
Output array of datetime64[ns]
193-
193+
194194
Examples
195195
--------
196196
>>> epoch_to_datetime64(np.arange(2))
197197
array(['1970-01-01T00:00:00.000000000', '1970-01-01T00:00:01.000000000'],
198198
dtype='datetime64[ns]')
199199
200-
200+
201201
"""
202202
return (epoch_array * 1e9).astype("datetime64[ns]")
203203

@@ -263,7 +263,8 @@ def fix_name(name: str):
263263
('}', ''),
264264
('(', ''),
265265
('⊙', 'o'),
266-
(';', '_')
266+
(';', '_'),
267+
(',', '_')
267268
)
268269
if len(name):
269270
if name[0].isnumeric():

0 commit comments

Comments
 (0)