• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geopython / pywps / 6695422643

30 Oct 2023 03:58PM UTC coverage: 84.061%. First build
6695422643

Pull #688

github

web-flow
Merge c5f1e1ce8 into 5304dae18
Pull Request #688: Prepare release 4.6.0

29 of 29 new or added lines in 2 files covered. (100.0%)

5374 of 6393 relevant lines covered (84.06%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/pywps/inout/array_encode.py
1
##################################################################
2
# Copyright 2018 Open Source Geospatial Foundation and others    #
3
# licensed under MIT, Please consult LICENSE.txt for details     #
4
##################################################################
5

6
from json import JSONEncoder
1✔
7

8

9
class ArrayEncoder(JSONEncoder):
1✔
10
    def default(self, obj):
1✔
11
        if hasattr(obj, 'tolist'):
×
12
            # this will work for array.array and numpy.ndarray
13
            return obj.tolist()
×
14
        return JSONEncoder.default(self, obj)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc