Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tzis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
data-infrastructure-services
tzis
Commits
a7ccf0c5
Commit
a7ccf0c5
authored
3 years ago
by
Fabian Wachsmann
Browse files
Options
Downloads
Patches
Plain Diff
Debugged missing selfes
parent
ce091911
No related branches found
No related tags found
1 merge request
!1
To class
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tzis/tzis.py
+3
-3
3 additions, 3 deletions
tzis/tzis.py
with
3 additions
and
3 deletions
tzis/tzis.py
+
3
−
3
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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment