Skip to content

Fix future/deprecation warning #201

@EwoutH

Description

@EwoutH

Fix all of the future/deprecations warnings currently present:

Done (#202, #211):

  • Fix MarkerStyle(None) deprecation in matplotlib by replacing it with MarkerStyle('')
  • Replace deprecated .iteritems() with .items() for dicts
  • Fix Matplotlib deprecation of loc as a positional keyword in legend functions
  • Import launcher from ipyparallel.cluster instead of ipyparallel.apps
  • EMAworkbench/ema_workbench/em_framework/salib_samplers.py:137: DeprecationWarning: salib.sample.saltelli will be removed in SALib 1.5. Please use salib.sample.sobol
  • sklearn/cluster/_agglomerative.py:983: FutureWarning: Attribute affinity was deprecated in version 1.2 and will be removed in 1.4. Use metric instead (clusterer: Update AgglomerativeClustering keyword to fix deprecation #218)
  • DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops. (Replace deprecated zmq.eventloop.ioloop with Tornado's ioloop #334)

No action needed
The new default behaviour will be the desired behaviour:

  • EMAworkbench/ema_workbench/analysis/parcoords.py:176: FutureWarning: In a future version, df.iloc[:, i] = newvals will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either df[df.columns[i]] = newvals or, if columns are non-unique, df.isetitem(i, newvals)
  • EMAworkbench/EMAworkbench/ema_workbench/analysis/logistic_regression.py:256: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation.
    self.peeling_trajectory = pd.concat(

To-do:

  • EMAworkbench/ema_workbench/analysis/scenario_discovery_util.py:413: UserWarning: FixedFormatter should only be used together with FixedLocator
  • Python/3.10.8/x64/lib/python3.10/site-packages/tornado/ioloop.py:265: DeprecationWarning: There is no current event loop
  • Python/3.10.8/x64/lib/python3.10/site-packages/tornado/platform/asyncio.py:299: DeprecationWarning: There is no current event loop

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions