Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-infrastructure-services
tzis
Commits
a7ccf0c5
Commit
a7ccf0c5
authored
May 28, 2021
by
Fabian Wachsmann
Browse files
Debugged missing selfes
parent
ce091911
Changes
1
Hide whitespace changes
Inline
Side-by-side
tzis/tzis.py
View file @
a7ccf0c5
...
...
@@ -155,7 +155,7 @@ class Tzis():
# In[7]:
def
_sel_range_for_chunk_by_time
(
ds
,
starttimeindex
,
endtimeindex
):
def
_sel_range_for_chunk_by_time
(
self
,
ds
,
starttimeindex
,
endtimeindex
):
return
ds
.
isel
(
time
=
slice
(
starttimeindex
,
endtimeindex
))
...
...
@@ -179,7 +179,7 @@ class Tzis():
def
_sel_range_for_chunk
(
self
,
ds
,
startindex
,
endindex
,
chunkdim
):
if
chunkdim
==
"time"
:
return
self
.
_sel_range_for_chunk_by_time
(
ds
,
startindex
,
endindex
)
return
self
.
_sel_range_for_chunk_by_time
(
self
,
ds
,
startindex
,
endindex
)
else
:
raise
ValueError
(
'Other chunk dimensions than "time" are not supported yet.'
)
...
...
@@ -252,7 +252,7 @@ class Tzis():
return
write_status
return
0
def
write_directly
(
dset
=
None
,
store
=
None
):
def
write_directly
(
self
,
dset
=
None
,
store
=
None
):
dset
.
to_zarr
(
store
=
store
,
mode
=
'w'
,
consolidated
=
True
)
def
write_with_validation_and_retries
(
self
,
ds
,
varname
,
store
,
chunkdim
,
target_mb
,
startchunk
,
validity_check
,
maxretries
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment