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

unit test warnings to consider #1041

Open
prjemian opened this issue Nov 19, 2024 · 0 comments
Open

unit test warnings to consider #1041

prjemian opened this issue Nov 19, 2024 · 0 comments
Labels
task Something to be done.

Comments

@prjemian
Copy link
Contributor

While working on #1039, received these warnings from local unit testing.

apstools/utils/tests/test_listruns_class.py::test_ListRuns_to_dataframe
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:417: UserWarning: 'ListRuns.to_dataframe()' method is deprecated.
    warnings.warn("'ListRuns.to_dataframe()' method is deprecated.")

apstools/utils/tests/test_listruns_class.py::test_ListRuns_to_table
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:423: UserWarning: 'ListRuns.to_table()' method is deprecated.
    warnings.warn("'ListRuns.to_table()' method is deprecated.")

apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[dataframe-None-DataFrame]
apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[dataframe-TableStyle.pyRestTable-DataFrame]
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:557: UserWarning: Use 'table_style=TableStyle.pandas' instead of deprecated option 'tablefmt="dataframe"'.
    warnings.warn(

apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[table-None-PRT_Table]
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:557: UserWarning: Use 'table_style=TableStyle.pyRestTable' instead of deprecated option 'tablefmt="table"'.
    warnings.warn(

apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[the other table format-None-PRT_Table]
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:557: UserWarning: Use 'table_style=TableStyle.pyRestTable' instead of deprecated option 'tablefmt="the other table format"'.
    warnings.warn(

apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[not a dataframe-TableStyle.pyRestTable-PRT_Table]
apstools/utils/tests/test_listruns_class.py::test_listruns_tablefmt[not a dataframe-TableStyle.pandas-PRT_Table]
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/utils/list_runs.py:557: UserWarning: Use 'table_style=TableStyle.pyRestTable' instead of deprecated option 'tablefmt="not a dataframe"'.
    warnings.warn(

apstools/plans/tests/test_alignment.py::test_direct_implementation_with_rel_scan[parms0]
apstools/plans/tests/test_alignment.py::test_lineup2_signal_permutations[parms12]
  /home/prjemian/.conda/envs/bluesky_2024_3/lib/python3.11/site-packages/bluesky/callbacks/fitting.py:167: RuntimeWarning: invalid value encountered in scalar divide
    np.sum(input * grids[dir].astype(float), labels, index) / normalizer

apstools/plans/tests/test_alignment.py: 326 warnings
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/synth_pseudo_voigt.py:137: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    v = int(np.random.poisson(np.round(v), 1))

apstools/plans/tests/test_alignment.py::test_lineup2[parms9]
apstools/plans/tests/test_alignment.py::test_TuneAxis
  /home/prjemian/.conda/envs/bluesky_2024_3/lib/python3.11/site-packages/bluesky/utils/__init__.py:1748: UserWarning: constrained_layout not applied because axes sizes collapsed to zero.  Try making figure larger or Axes decorations smaller.
    (event_loop.exec()

apstools/synApps/tests/test_iocstats.py::test_attribute_quantities[IocStatsDevice-gp:-True-read()-19]
  /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/tests/__init__.py:82: UserWarning: Timeout connecting read() in 1/3
    warnings.warn(f"Timeout connecting {attr} in {retry}/{MAX_TESTING_RETRIES}")
@prjemian prjemian added the task Something to be done. label Nov 19, 2024
@prjemian prjemian added this to the future-milestone milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Something to be done.
Projects
None yet
Development

No branches or pull requests

1 participant