-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix future/deprecation warning #201
Comments
with respect to the open issues
EMAworkbench/ema_workbench/analysis/scenario_discovery_util.py Lines 402 to 413 in 60a45e7
However, what concerns me is the difference with the code for handling the columns: EMAworkbench/ema_workbench/analysis/scenario_discovery_util.py Lines 415 to 429 in 60a45e7
Here a mapping is being used to map labels to locations. I am not sure why this mapping is not used for the rows. 3 and 4. No idea. Where is this warning being triggered in the workbench?
|
Great, moved to the No action needed-list.
3 here and 4 here and 4 here. So all in |
I think this is the most future-proof option. Do we needs some sort of validation that it doesn't (significantly) change outcomes? |
Replace deprecated saltelli with sobol SALib 1.4.6+. Behind the scenes the Sobol method will call SciPy scipy.stats.qmc.Sobol. Part of #201.
Pandas 2.0.0 was released earlier today, and now the FutureWarning has disappeared. Just to doublecheck, we're sure this line of code is now (still) doing what we intended? (without us changing it)
|
in place is the right behavior. |
@quaquel A new FutureWarning popped up in the CI:
It's happening here:
Can you check what's the intended behavior? |
The behavior change should not matter. In this code, a new set of rows is added to an existing data frame, so there should not be any NA columns anyway. The new behavior is thus fine. |
Relevant ones fixed, moving others to 3.0 |
Few FutureWarnings with Pandas 2.2 (since 2.2.0rc0) in the CI run:
|
Back at 153 warnings again, see this run for example. |
Fix all of the future/deprecations warnings currently present:
Done (#202, #211):
MarkerStyle(None)
deprecation in matplotlib by replacing it withMarkerStyle('')
.iteritems()
with.items()
for dictsloc
as a positional keyword inlegend
functionslauncher
fromipyparallel.cluster
instead ofipyparallel.apps
salib.sample.saltelli
will be removed in SALib 1.5. Please usesalib.sample.sobol
affinity
was deprecated in version 1.2 and will be removed in 1.4. Usemetric
instead (clusterer: Update AgglomerativeClustering keyword to fix deprecation #218)No action needed
The new default behaviour will be the desired behaviour:
df.iloc[:, i] = newvals
will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use eitherdf[df.columns[i]] = newvals
or, if columns are non-unique,df.isetitem(i, newvals)
self.peeling_trajectory = pd.concat(
To-do:
The text was updated successfully, but these errors were encountered: