Skip to content

Commit

Permalink
Merge branch 'master' into check_metadata_rundb
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Aug 29, 2023
2 parents e51e468 + 3258746 commit 69df71e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extra_requirements/requirements-tests.txt
Expand Up @@ -4,5 +4,5 @@ git+https://github.com/XENONnT/ax_env
wfsim==1.0.2
nbmake
pytest-xdist
xedocs==0.2.20
xedocs==0.2.23
ipython==8.12.1
10 changes: 6 additions & 4 deletions straxen/itp_map.py
Expand Up @@ -156,10 +156,12 @@ def __init__(self, data, method='WeightedNearestNeighbors', **kwargs):
for map_name in self.map_names:
# Specify dtype float to set Nones to nan
map_data = np.array(self.data[map_name], dtype=np.float64)
if len(self.coordinate_system) == len(map_data):
array_valued = len(map_data.shape) == 2
else:
array_valued = len(map_data.shape) == self.dimensions + 1

if self.dimensions != 0:
if len(self.coordinate_system) == len(map_data):
array_valued = len(map_data.shape) == 2
else:
array_valued = len(map_data.shape) == self.dimensions + 1

if self.dimensions == 0:
# 0 D -- placeholder maps which take no arguments
Expand Down

0 comments on commit 69df71e

Please sign in to comment.