Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
ift
resolve
Commits
500ccd94
Commit
500ccd94
authored
2 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Make h5py optional
parent
ff4f61af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!36
Pypi
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resolve/ubik_tools/plot_sky_hdf5.py
+5
-1
5 additions, 1 deletion
resolve/ubik_tools/plot_sky_hdf5.py
setup.py
+2
-2
2 additions, 2 deletions
setup.py
with
7 additions
and
3 deletions
resolve/ubik_tools/plot_sky_hdf5.py
+
5
−
1
View file @
500ccd94
...
...
@@ -19,7 +19,6 @@ import os
import
pickle
from
warnings
import
warn
import
h5py
import
matplotlib.pyplot
as
plt
import
nifty8
as
ift
import
numpy
as
np
...
...
@@ -85,6 +84,11 @@ def visualize_sky_hdf5(hdf5_file, output_file, what, stokes, norm="linear", vmin
dpi : int
"""
try
:
import
h5py
except
ImportError
:
raise
ImportError
(
"
Need to install the optional dependency h5py
"
)
with
h5py
.
File
(
hdf5_file
,
"
r
"
)
as
f
:
if
what
==
"
mean
"
:
if
"
stats
"
in
f
.
keys
()
and
"
mean
"
in
f
[
"
stats
"
].
keys
():
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
2
View file @
500ccd94
...
...
@@ -142,8 +142,8 @@ setup(
packages
=
find_packages
(
include
=
[
"
resolve
"
,
"
resolve.*
"
,
"
resolve_support
"
,
"
resolve_support.*
"
]),
zip_safe
=
True
,
dependency_links
=
[],
install_requires
=
[
"
ducc0
"
,
"
matplotlib
"
,
"
h5py
"
,
"
scipy
"
,
"
nifty8
"
],
extras_require
=
{
"
full
"
:
(
"
astropy
"
,
"
pytest
"
,
"
pytest-cov
"
,
"
mpi4py
"
,
"
python-casacore
"
)},
install_requires
=
[
"
ducc0
"
,
"
matplotlib
"
,
"
scipy
"
,
"
nifty8
"
],
extras_require
=
{
"
full
"
:
(
"
astropy
"
,
"
pytest
"
,
"
pytest-cov
"
,
"
mpi4py
"
,
"
python-casacore
"
,
"
h5py
"
)},
ext_modules
=
extensions
,
entry_points
=
{
"
console_scripts
"
:
[
...
...
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