DFO-Ocean-Navigator / Ocean-Data-Map-Project

The Ocean Navigator is an online tool that is used to help visualise scientific research data. a users guide is available at https://dfo-ocean-navigator.github.io/Ocean-Navigator-Manual/ and the tool is live at
http://navigator.oceansdata.ca
GNU General Public License v3.0
49 stars 20 forks source link

Test cases throwing DeprecationWarnings #886

Closed jmunroe closed 1 year ago

jmunroe commented 3 years ago

Our python test suite throws a number of DeprecationWarnings:

Presumably upgrading some of the underlying python packages will resolve these. But, upgrading packages is can be tricky so this issue is being created to document any potential problems.

jmunroe commented 3 years ago

Here's what I have as unit test output as a starting point:

Ran 211 tests in 266.849s

FAILED (failures=1, errors=5, skipped=20)

Complete log...

bash run_python_tests.py | tee test.log (added a -v as an option to python -m unitest)

test_get_datatypes (tests.test_observational_queries.TestObservationalQueries) ... ok
test_get_meta (tests.test_observational_queries.TestObservationalQueries) ... ok
test_get_platform_track (tests.test_observational_queries.TestObservationalQueries) ... ok
test_get_platform_tracks (tests.test_observational_queries.TestObservationalQueries) ... ok
test_get_platform_variable_track (tests.test_observational_queries.TestObservationalQueries) ... skipped 'TypeError: unsupported operand type(s) for -: float and str'
test_get_stations (tests.test_observational_queries.TestObservationalQueries) ... ok
test_get_stations_radius (tests.test_observational_queries.TestObservationalQueries) ... ok
test_bottom_point (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_depths (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_enter (tests.test_merc.TestMercator) ... ok
test_get_area (tests.test_merc.TestMercator) ... ok
test_get_path_profile (tests.test_merc.TestMercator) ... skipped 'IndexError: index 0 is out of bounds for axis 0 with size 0'
test_get_point (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_profile (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_profile_depths (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_raw_point (tests.test_merc.TestMercator) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_timeseries_point (tests.test_merc.TestMercator) ... skipped 'IndexError: index 0 is out of bounds for axis 0 with size 0'
test_get_timeseries_profile (tests.test_merc.TestMercator) ... skipped 'IndexError: index 0 is out of bounds for axis 0 with size 0'
test_init (tests.test_merc.TestMercator) ... ok
test_variables (tests.test_merc.TestMercator) ... ok
test__str__ (tests.test_variable.TestVariable) ... ok
test_has_depth_returns_false_with_surface_variable (tests.test_variable.TestVariable) ... ok
test_has_depth_returns_true_with_3d_variable (tests.test_variable.TestVariable) ... ok
test_is_surface_only_returns_false_with_3d_variable (tests.test_variable.TestVariable) ... ok
test_properties (tests.test_variable.TestVariable) ... ok
test_surface_only_returns_true_with_surface_variable (tests.test_variable.TestVariable) ... ok
test_list_class4_forecasts_1_forecast_date (tests.test_data_class4.TestListClass4Forecasts) ... ok
test_list_class4_models (tests.test_data_class4.TestListClass4Models) ... ok
test_deepsoundchannel (tests.test_data_functions.TestDataFunctions) ... ERROR
test_magnitude (tests.test_data_functions.TestDataFunctions) ... ok
test_max (tests.test_data_functions.TestDataFunctions) ... ok
test_min (tests.test_data_functions.TestDataFunctions) ... ok
test_soniclayerdepth (tests.test_data_functions.TestDataFunctions) ... skipped 'IndexError: tuple index out of range'
test_sspeed (tests.test_data_functions.TestDataFunctions) ... ok
test_open_dataset_bad_model_class_raises (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_no_model_class_raises (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_returns_fvcom_object (tests.test_data_open_dataset.TestOpenDataset) ... /home/jmunroe/Ocean-Data-Map-Project/data/netcdf_data.py:796: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  var, ds[var].getncattr("long_name"), ds[var].getncattr("units"),
ok
test_open_dataset_returns_mercator_object (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_returns_nemo_object (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_uses_lru_cache (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_with_null_dataset_raises (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_open_dataset_with_null_url_raises (tests.test_data_open_dataset.TestOpenDataset) ... ok
test_bearing (tests.test_geo.TestGeo) ... ok
test_path_to_points (tests.test_geo.TestGeo) ... ok
test_points_between (tests.test_geo.TestGeo) ... ok
test__contains__ (tests.test_variable_list.TestVariableList) ... ok
test__getitem__ (tests.test_variable_list.TestVariableList) ... ok
test_arithmetic (tests.test_calculated_parser.TestCalculatedParser) ... ok
test_constants (tests.test_calculated_parser.TestCalculatedParser) ... ok
test_functions (tests.test_calculated_parser.TestCalculatedParser) ... ok
test_syntax_error_in_expr_raises (tests.test_calculated_parser.TestCalculatedParser) ... ok
test_syntax_full_depth (tests.test_calculated_parser.TestCalculatedParser) ... ok
test_attrs (tests.test_calculated_data.TestCalculatedArray) ... ok
test_different_dimensions (tests.test_calculated_data.TestCalculatedArray) ... ok
test_multiple_expression (tests.test_calculated_data.TestCalculatedArray) ... ok
test_passthrough (tests.test_calculated_data.TestCalculatedArray) ... ok
test_single_expression (tests.test_calculated_data.TestCalculatedArray) ... ok
test_static (tests.test_calculated_data.TestCalculatedArray) ... ok
test_calculated_var_wo_dims_raises (tests.test_calculated_data.TestCalculatedData) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_new_variable (tests.test_calculated_data.TestCalculatedData) ... ok
test_nothing (tests.test_calculated_data.TestCalculatedData) ... ok
test_override (tests.test_calculated_data.TestCalculatedData) ... ok
test_erroneous_args_return_empty_lists (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_all_dimensions_returns_dims (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_all_variables_returns_all_variables (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_data_variables_returns_variable_list (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_earliest_timestamp_returns_earliest_timestamp (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_latest_timestamp_returns_latest_timestamp (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_netcdf_files_returns_correct_files_for_historical (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_timestamp_range_returns_range (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_timestamps_returns_correct_timestamps_for_historical (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_variable_dims_returns_correct_dims (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_get_variable_units_returns_correct_units (tests.test_sqlite_database.TestSqliteDatabase) ... ok
test_datetime_to_timestamp (tests.test_data_utils.TestDataUtils) ... ok
test_find_ge (tests.test_data_utils.TestDataUtils) ... ok
test_find_le (tests.test_data_utils.TestDataUtils) ... ok
test_get_data_vars_from_equation (tests.test_data_utils.TestDataUtils) ... ok
test_roll_time (tests.test_data_utils.TestDataUtils) ... ok
test_time_index_to_datetime (tests.test_data_utils.TestDataUtils) ... ok
test_trunc_truncates_all_values (tests.test_data_utils.TestDataUtils) ... ok
test_trunc_truncates_one_value (tests.test_data_utils.TestDataUtils) ... ok
test_convert_to_timestamp_list (tests.test_netcdf_data.TestNetCDFData) ... skipped 'TypeError: cant subtract offset-naive and offset-aware datetimes'
test_convert_to_timestamp_str (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_geo_ref (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_geo_ref_no_drop_variables (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_grid_angle_file (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_nc_files_list (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_nc_files_list_fvcom (tests.test_netcdf_data.TestNetCDFData) ... skipped 'Format of tests/testdata/fvcom_tests.nc causes ValueError: MFNetCDF4 only works with NETCDF3_* and NETCDF4_CLASSIC formatted files, not NETCDF4'
test_enter_no_geo_ref (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_no_nc_files_list (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_no_nc_files_list_fvcom (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_url_list (tests.test_netcdf_data.TestNetCDFData) ... ok
test_enter_zarr_file (tests.test_netcdf_data.TestNetCDFData) ... ok
test_exit (tests.test_netcdf_data.TestNetCDFData) ... ok
test_fvcom_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_fvcom_variables (tests.test_netcdf_data.TestNetCDFData) ... /home/jmunroe/Ocean-Data-Map-Project/data/netcdf_data.py:796: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  var, ds[var].getncattr("long_name"), ds[var].getncattr("units"),
ok
test_get_dataset_variable_raises_on_unknown_variable (tests.test_netcdf_data.TestNetCDFData) ... ok
test_get_dataset_variable_returns_dataarray (tests.test_netcdf_data.TestNetCDFData) ... ok
test_get_nc_file_list_no_dataset_config_url (tests.test_netcdf_data.TestNetCDFData) ... ok
test_get_nc_file_list_not_sqlite3 (tests.test_netcdf_data.TestNetCDFData) ... ok
test_init (tests.test_netcdf_data.TestNetCDFData) ... ok
test_interpolate_raises_on_unknown_interp_method (tests.test_netcdf_data.TestNetCDFData) ... ok
test_latlon_variables_not_found_raises (tests.test_netcdf_data.TestNetCDFData) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_mercator_latlon_variables (tests.test_netcdf_data.TestNetCDFData) ... ok
test_nemo_latlon_variables (tests.test_netcdf_data.TestNetCDFData) ... ok
test_subset_issue769_1d_lons_lats (tests.test_netcdf_data.TestNetCDFData)
Confirm that the 1d lons and lats arrays condition that causes subset() ... ERROR
test_subset_issue769_dims_do_not_exist (tests.test_netcdf_data.TestNetCDFData)
Confirm that the unknown dimensions arrays names condition that causes subset() ... ERROR
test_timestamp_to_iso_8601_int_timestamp (tests.test_netcdf_data.TestNetCDFData) ... skipped 'AttributeError: module cftime has no attribute real_datetime'
test_timestamp_to_iso_8601_timestamp_list (tests.test_netcdf_data.TestNetCDFData) ... skipped 'AttributeError: module cftime has no attribute real_datetime'
test_timestamp_to_time_index_int_timestamp (tests.test_netcdf_data.TestNetCDFData) ... ok
test_timestamp_to_time_index_timestamp_list (tests.test_netcdf_data.TestNetCDFData) ... ok
test_timestamps (tests.test_netcdf_data.TestNetCDFData) ... ok
test_variable_list_cached (tests.test_netcdf_data.TestNetCDFData) ... ok
test_x_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_xarray_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_xarray_variables (tests.test_netcdf_data.TestNetCDFData) ... ok
test_y_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_yx_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_zarr_xarray_dimensions (tests.test_netcdf_data.TestNetCDFData) ... ok
test_zarr_xarray_variables (tests.test_netcdf_data.TestNetCDFData) ... ok
test_create_app_actually_works (tests.test_create_app.TestCreateApp) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask_sqlalchemy/utils.py:44: DeprecationWarning: The `SQLALCHEMY_POOL_RECYCLE` config option is deprecated and will be removed in v3.0.  Use `SQLALCHEMY_ENGINE_OPTIONS['pool_recycle']` instead.
  DeprecationWarning
ok
test_bottom_point (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_depths (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_area (tests.test_nemo.TestNemo) ... ok
test_get_path_profile (tests.test_nemo.TestNemo) ... skipped 'IndexError: index 0 is out of bounds for axis 0 with size 0'
test_get_point (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_profile (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_profile_depths (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_profile_raises_when_surface_variable_requested (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_get_raw_point (tests.test_nemo.TestNemo) ... ok
test_get_timeseries_point (tests.test_nemo.TestNemo) ... ok
test_get_timeseries_profile (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_init (tests.test_nemo.TestNemo) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_no_depth_variable (tests.test_nemo.TestNemo) ... ok
test_variables (tests.test_nemo.TestNemo) ... ok
test_data_array_to_geojson_builds_correct_feature_collection (tests.data.transformers.test_geojson.GeoJSONTest) ... ok
test_data_array_to_geojson_raises_when_data_not_2d (tests.data.transformers.test_geojson.GeoJSONTest) ... ok
test_find_colormap_default (tests.test_colormap.TestColormap) ... ok
test_find_colormap_explicit (tests.test_colormap.TestColormap) ... ok
test_find_colormap_regex (tests.test_colormap.TestColormap) ... ok
test_datasetconfig_object (tests.test_dataset_config.TestUtil) ... ok
test_get_calculated_ (tests.test_dataset_config.TestUtil) ... ok
test_get_dataset_misc (tests.test_dataset_config.TestUtil) ... ok
test_get_datasets (tests.test_dataset_config.TestUtil) ... ok
test_get_variable_misc (tests.test_dataset_config.TestUtil) ... ok
test_get_variables (tests.test_dataset_config.TestUtil) ... ok
test_variable_string (tests.test_dataset_config.TestUtil) ... ok
test_vector_variable (tests.test_dataset_config.TestUtil) ... ok
test_data_endpoint (tests.routes.test_api_v_1_0_get_data.TestAPIv1GetData) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
FAIL
test_data_endpoint_returns_error_400_when_args_are_missing (tests.routes.test_api_v_1_0_get_data.TestAPIv1GetData) ... ok
test_generatescript_endpoint_for_csv_script_type (tests.routes.test_api_v_1_0_generatescript.TestApiv10GenerateScript) ... ok
test_generatescript_endpoint_for_plot_script_type (tests.routes.test_api_v_1_0_generatescript.TestApiv10GenerateScript) ... ok
test_get_data_schema_returns_errors_with_missing_args (tests.routes.schemas.test_get_data_schema.GetDataSchemaTest) ... ok
test_get_data_schema_returns_errors_with_wrong_values (tests.routes.schemas.test_get_data_schema.GetDataSchemaTest) ... ok
test_get_data_schema_validates_inputs (tests.routes.schemas.test_get_data_schema.GetDataSchemaTest) ... ok
test_depth_schema_returns_errors_with_missing_args (tests.routes.schemas.test_depth_schema.DepthSchemaTest) ... ok
test_depth_schema_validates_inputs (tests.routes.schemas.test_depth_schema.DepthSchemaTest) ... ok
test_generate_script_schema_returns_errors_with_missing_args (tests.routes.schemas.test_generate_script_schema.GenerateScriptSchemaTest) ... ok
test_generate_script_schema_returns_errors_with_wrong_values (tests.routes.schemas.test_generate_script_schema.GenerateScriptSchemaTest) ... ok
test_generate_script_schema_validate_input (tests.routes.schemas.test_generate_script_schema.GenerateScriptSchemaTest) ... ok
test_quantum_schema_returns_errors_with_missing_args (tests.routes.schemas.test_quantum_schema.QuantumSchemaTest) ... ok
test_quantum_schema_validates_inputs (tests.routes.schemas.test_quantum_schema.QuantumSchemaTest) ... ok
test_timestamps_schema_returns_errors_with_missing_args (tests.routes.schemas.test_timestamps_schema.TimestampsSchemaTest) ... ok
test_timestamps_schema_validates_inputs (tests.routes.schemas.test_timestamps_schema.TimestampsSchemaTest) ... ok
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask_sqlalchemy/utils.py:44: DeprecationWarning: The `SQLALCHEMY_POOL_RECYCLE` config option is deprecated and will be removed in v3.0.  Use `SQLALCHEMY_ENGINE_OPTIONS['pool_recycle']` instead.
  DeprecationWarning
test_generatePython_csv (tests.test_scriptGen.TestScriptGenerator) ... ok
test_generatePython_netcdf (tests.test_scriptGen.TestScriptGenerator) ... ok
test_generatePython_plot (tests.test_scriptGen.TestScriptGenerator) ... ok
test_generateR_csv (tests.test_scriptGen.TestScriptGenerator) ... skipped 'Test is broken: these should not have been comparing hashes, but the entire output.'
test_generateR_netcdf (tests.test_scriptGen.TestScriptGenerator) ... skipped 'Test is broken: these should not have been comparing hashes, but the entire output.'
test_generateR_plot (tests.test_scriptGen.TestScriptGenerator) ... skipped 'Test is broken: these should not have been comparing hashes, but the entire output.'
test_api_info (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
ok
test_bath_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_class4_models_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_colormaps_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_colormaps_image_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_colors_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_data_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'Skipping api/data.. problem with timestamp conversion'
test_datasets_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_depth_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_mbt_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/unittest/mock.py:1183: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpw6u97d1m/api/v1.0/mbt/EPSG:3857/lands/7/105/77'>
  return func(*args, **keywargs)
ok
test_observation_datatypes (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_meta (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_meta_keys (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_meta_values (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_track (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_tracktimerange (tests.test_api_v_1_0.TestAPIv1) ... ok
test_observation_variables (tests.test_api_v_1_0.TestAPIv1) ... ok
test_plot_hovmoller_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py:4801: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if fix_wrap_around and itemindex:
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py:4801: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if fix_wrap_around and itemindex:
ok
test_plot_map_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:71: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  width=width
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:76: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle'>
  pickle.dump(basemap, open(filename, 'wb'), -1)
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:40: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle' mode='r' encoding='UTF-8'>
  basemap = pickle.load(open(filename))
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:71: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  width=width
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:76: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle'>
  pickle.dump(basemap, open(filename, 'wb'), -1)
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:40: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle' mode='r' encoding='UTF-8'>
  basemap = pickle.load(open(filename))
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:71: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  width=width
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:76: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle'>
  pickle.dump(basemap, open(filename, 'wb'), -1)
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:40: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle' mode='r' encoding='UTF-8'>
  basemap = pickle.load(open(filename))
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:71: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  width=width
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:76: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle'>
  pickle.dump(basemap, open(filename, 'wb'), -1)
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:40: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle' mode='r' encoding='UTF-8'>
  basemap = pickle.load(open(filename))
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:71: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  width=width
/home/jmunroe/Ocean-Data-Map-Project/plotting/basemap.py:76: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpw6u97d1m/76034a46719b67d7b271656426085b933d836c01.pickle'>
  pickle.dump(basemap, open(filename, 'wb'), -1)
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_plot_observation_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'Skipping api/plot/observation.. returning error'
test_plot_profile_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
ok
test_plot_sound_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'Skipping api/plot/sound.. returning error'
test_plot_stick_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'Skipping api/plot/stickplot.. explaination in definition..'
test_plot_timeseries_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
ok
test_plot_timeseries_endpoint_all_depths (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_plot_timeseries_endpoint_bottom_depth (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
ok
test_plot_transect_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py:4801: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if fix_wrap_around and itemindex:
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py:4801: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if fix_wrap_around and itemindex:
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/transect.py:335: UserWarning: Warning: converting a masked element to nan.
  entry.append("%0.4f" % self.transect_data[t][j, idx])
ok
test_plot_ts_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/Ocean-Data-Map-Project/plotting/utils.py:109: MatplotlibDeprecationWarning: 
The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead.
  rsphere=(6378137.00, 6356752.3142),
ok
test_quantum_query (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
ok
test_query_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ERROR
test_query_file_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'IndexError: list index out of range'
test_query_id_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'IndexError: list index out of range'
test_range_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
ok
test_scale_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_stats_endpoint (tests.test_api_v_1_0.TestAPIv1) ... skipped 'Skipping api/stats.. needs re-write'
test_subset_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ERROR
test_tile_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_timestamps_endpoint_sqlite (tests.test_api_v_1_0.TestAPIv1) ... ok
test_timestamps_endpoint_xarray (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:366: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in var.ncattrs())
/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/netCDF4_.py:400: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
  for k in self.ds.ncattrs())
ok
test_topo_endpoint (tests.test_api_v_1_0.TestAPIv1) ... ok
test_variables_endpoint (tests.test_api_v_1_0.TestAPIv1) ... /home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
ok

======================================================================
ERROR: test_deepsoundchannel (tests.test_data_functions.TestDataFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/test_data_functions.py", line 47, in test_deepsoundchannel
    data=[0], dims=['depth']), [45], [0.5], [32]), 0)
  File "/home/jmunroe/Ocean-Data-Map-Project/data/calculated_parser/functions.py", line 367, in deepsoundchannel
    data[data < 500] = np.nan
TypeError: 'numpy.int64' object does not support item assignment

======================================================================
ERROR: test_subset_issue769_1d_lons_lats (tests.test_netcdf_data.TestNetCDFData)
Confirm that the 1d lons and lats arrays condition that causes subset()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/test_netcdf_data.py", line 229, in test_subset_issue769_1d_lons_lats
    nc_data.subset(query)
  File "/home/jmunroe/Ocean-Data-Map-Project/data/netcdf_data.py", line 536, in subset
    subset.to_netcdf(temp_file_name)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/core/dataset.py", line 1232, in to_netcdf
    compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/api.py", line 754, in to_netcdf
    writes = writer.sync(compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/common.py", line 179, in sync
    flush=True)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/array/core.py", line 790, in store
    result.compute(**kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 156, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 398, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 192, in get
    raise_exception=reraise, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 449, in get_async
    fire_task()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 443, in fire_task
    args=(key, dumps((dsk[key], data)),
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 26, in _dumps
    return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 1103, in dumps
    cp.dump(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 468, in dump
    return Pickler.dump(self, obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 409, in dump
    self.save(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 781, in save_list
    self._batch_appends(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 808, in _batch_appends
    save(tmp[0])
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 852, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 496, in save
    rv = reduce(self.proto)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/synchronize.py", line 101, in __getstate__
    context.assert_spawning(self)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/context.py", line 356, in assert_spawning
    ' through inheritance' % type(obj).__name__
RuntimeError: Lock objects should only be shared between processes through inheritance

======================================================================
ERROR: test_subset_issue769_dims_do_not_exist (tests.test_netcdf_data.TestNetCDFData)
Confirm that the unknown dimensions arrays names condition that causes subset()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/test_netcdf_data.py", line 251, in test_subset_issue769_dims_do_not_exist
    nc_data.subset(query)
  File "/home/jmunroe/Ocean-Data-Map-Project/data/netcdf_data.py", line 536, in subset
    subset.to_netcdf(temp_file_name)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/core/dataset.py", line 1232, in to_netcdf
    compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/api.py", line 754, in to_netcdf
    writes = writer.sync(compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/common.py", line 179, in sync
    flush=True)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/array/core.py", line 790, in store
    result.compute(**kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 156, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 398, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 192, in get
    raise_exception=reraise, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 449, in get_async
    fire_task()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 443, in fire_task
    args=(key, dumps((dsk[key], data)),
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 26, in _dumps
    return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 1103, in dumps
    cp.dump(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 468, in dump
    return Pickler.dump(self, obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 409, in dump
    self.save(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 852, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 496, in save
    rv = reduce(self.proto)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/synchronize.py", line 101, in __getstate__
    context.assert_spawning(self)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/context.py", line 356, in assert_spawning
    ' through inheritance' % type(obj).__name__
RuntimeError: Lock objects should only be shared between processes through inheritance

======================================================================
ERROR: test_query_endpoint (tests.test_api_v_1_0.TestAPIv1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/test_api_v_1_0.py", line 386, in test_query_endpoint
    '/api/v1.0/points/'
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 830, in get
    return self.open(*args, **kw)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/testing.py", line 127, in open
    follow_redirects=follow_redirects)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 803, in open
    response = self.run_wsgi_app(environ, buffered=buffered)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 716, in run_wsgi_app
    rv = run_wsgi_app(self.application, environ, buffered=buffered)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 923, in run_wsgi_app
    app_rv = app(environ, start_response)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/flask.py", line 90, in sentry_patched_wsgi_app
    environ, start_response
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 131, in __call__
    reraise(*_capture_exception(hub))
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 127, in __call__
    _sentry_start_response, start_response, transaction
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/flask.py", line 89, in <lambda>
    return SentryWsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))(
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/jmunroe/Ocean-Data-Map-Project/routes/api_v1_0.py", line 680, in query_v1_0
    data = utils.misc.list_kml_files('point')
  File "/home/jmunroe/Ocean-Data-Map-Project/utils/misc.py", line 23, in list_kml_files
    for f in os.listdir(DIR):
FileNotFoundError: [Errno 2] No such file or directory: './kml/point'

======================================================================
ERROR: test_subset_endpoint (tests.test_api_v_1_0.TestAPIv1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/test_api_v_1_0.py", line 223, in test_subset_endpoint
    res = self.app.get(self.apiLinks["subset"])
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 830, in get
    return self.open(*args, **kw)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/testing.py", line 127, in open
    follow_redirects=follow_redirects)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 803, in open
    response = self.run_wsgi_app(environ, buffered=buffered)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 716, in run_wsgi_app
    rv = run_wsgi_app(self.application, environ, buffered=buffered)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/werkzeug/test.py", line 923, in run_wsgi_app
    app_rv = app(environ, start_response)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/flask.py", line 90, in sentry_patched_wsgi_app
    environ, start_response
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 131, in __call__
    reraise(*_capture_exception(hub))
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/wsgi.py", line 127, in __call__
    _sentry_start_response, start_response, transaction
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/sentry_sdk/integrations/flask.py", line 89, in <lambda>
    return SentryWsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))(
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/jmunroe/Ocean-Data-Map-Project/routes/api_v1_0.py", line 491, in subset_query_v1_0
    working_dir, subset_filename = dataset.nc_data.subset(args)
  File "/home/jmunroe/Ocean-Data-Map-Project/data/netcdf_data.py", line 556, in subset
    ".nc", format=output_format)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/core/dataset.py", line 1232, in to_netcdf
    compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/api.py", line 754, in to_netcdf
    writes = writer.sync(compute=compute)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/xarray/backends/common.py", line 179, in sync
    flush=True)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/array/core.py", line 790, in store
    result.compute(**kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 156, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/base.py", line 398, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 192, in get
    raise_exception=reraise, **kwargs)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 449, in get_async
    fire_task()
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/local.py", line 443, in fire_task
    args=(key, dumps((dsk[key], data)),
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/dask/multiprocessing.py", line 26, in _dumps
    return cloudpickle.dumps(x, protocol=pickle.HIGHEST_PROTOCOL)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 1103, in dumps
    cp.dump(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 468, in dump
    return Pickler.dump(self, obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 409, in dump
    self.save(obj)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 847, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 751, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 521, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 634, in save_reduce
    save(state)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 821, in save_dict
    self._batch_setitems(obj.items())
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 852, in _batch_setitems
    save(v)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 476, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 736, in save_tuple
    save(element)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/pickle.py", line 496, in save
    rv = reduce(self.proto)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/synchronize.py", line 101, in __getstate__
    context.assert_spawning(self)
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/multiprocessing/context.py", line 356, in assert_spawning
    ' through inheritance' % type(obj).__name__
RuntimeError: Lock objects should only be shared between processes through inheritance

======================================================================
FAIL: test_data_endpoint (tests.routes.test_api_v_1_0_get_data.TestAPIv1GetData)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jmunroe/miniforge3/envs/navigator-env/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)
  File "/home/jmunroe/Ocean-Data-Map-Project/tests/routes/test_api_v_1_0_get_data.py", line 46, in test_data_endpoint
    self.assertEqual(len(data['features']), 75)
AssertionError: 265 != 75

----------------------------------------------------------------------
Ran 211 tests in 266.849s

FAILED (failures=1, errors=5, skipped=20)