Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove warnings #83

Open
dcherian opened this issue Mar 19, 2021 · 0 comments
Open

remove warnings #83

dcherian opened this issue Mar 19, 2021 · 0 comments

Comments

@dcherian
Copy link
Contributor

=============================== warnings summary ===============================
../../../../../usr/share/miniconda/envs/pop-tools-dev/lib/python3.7/site-packages/_pytest/config/__init__.py:1233
  /usr/share/miniconda/envs/pop-tools-dev/lib/python3.7/site-packages/_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: collect_ignore
  
    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

tests/test_fill.py::test_lateral_fill_np_array
tests/test_fill.py::test_lateral_fill_np_array_ltripole
tests/test_fill.py::test_lateral_fill_np_array_SOR
tests/test_fill.py::test_lateral_fill_np_array_ltripole_SOR
  /home/runner/work/pop-tools/pop-tools/tests/test_fill.py:186: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    valid_points = np.ones(z_orig.shape, dtype=np.bool)

tests/test_fill.py::test_lateral_fill_2D
tests/test_fill.py::test_lateral_fill_2D
tests/test_grid.py::test_get_grid[POP_gx1v7]
tests/test_grid.py::test_get_grid[POP_gx1v6]
tests/test_grid.py::test_get_grid[POP_tx0.1v3]
tests/test_grid.py::test_get_grid[POP_tx0.1v2]
  /usr/share/miniconda/envs/pop-tools-dev/lib/python3.7/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'svn-ccsm-inputdata.cgd.ucar.edu'. Adding certificate verification is strongly advised. See: urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecureRequestWarning,

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:142: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    ULAT = grid_file_data[0, :, :].astype(np.float)

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:143: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    ULONG = grid_file_data[1, :, :].astype(np.float)

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:144: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    HTN = grid_file_data[2, :, :].astype(np.float)

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:145: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    HTE = grid_file_data[3, :, :].astype(np.float)

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:148: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    TLAT = np.empty((nlat, nlon), dtype=np.float)

tests/test_fill.py: 4 warnings
tests/test_grid.py: 13 warnings
tests/test_region_masks.py: 11 warnings
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:149: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    TLONG = np.empty((nlat, nlon), dtype=np.float)

tests/test_grid.py::test_get_grid_scrip
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:442: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    corner_lat = np.empty((nlat, nlon, 4), dtype=np.float)

tests/test_grid.py::test_get_grid_scrip
  /home/runner/work/pop-tools/pop-tools/pop_tools/grid.py:443: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    corner_lon = np.empty((nlat, nlon, 4), dtype=np.float)

tests/test_xgcm_util.py::test_to_xgcm_grid_dataset[tend_zint_100m_Fe.nc]
tests/test_xgcm_util.py::test_to_xgcm_grid_dataset[g.e20.G.TL319_t13.control.001_hfreq-coarsen.nc]
  /home/runner/work/pop-tools/pop-tools/pop_tools/xgcm_util.py:107: PendingDeprecationWarning: dropping variables using `drop` will be deprecated; using drop_vars is encouraged.
    ds_new = ds_new.drop('z_w_top').rename({'z_w': 'z_w_top'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant