Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Clément Haëck
submeso-color
Commits
2d6262c4
Commit
2d6262c4
authored
Sep 23, 2021
by
Clément Haëck
Browse files
Remove progress bar
parent
857bfb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
Compute/histogram/compute_hists_box.py
Compute/histogram/compute_hists_box.py
+1
-4
No files found.
Compute/histogram/compute_hists_box.py
View file @
2d6262c4
"""Compute histograms of variables for ostia data"""
from
dask.diagnostics
import
ProgressBar
import
numpy
as
np
import
xarray
as
xr
...
...
@@ -80,8 +78,7 @@ def main():
args
[
'Y'
]
=
args
[
'year'
]
ofile
=
lib
.
data
.
hists
.
get_filename
(
args
)
lib
.
check_output_dir
(
ofile
,
file
=
True
)
with
ProgressBar
():
ds
.
to_netcdf
(
ofile
,
encoding
=
{
v
:
{
'zlib'
:
True
}
for
v
in
ds
.
data_vars
})
ds
.
to_netcdf
(
ofile
,
encoding
=
{
v
:
{
'zlib'
:
True
}
for
v
in
ds
.
data_vars
})
return
ds
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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