v0.1.6 (February 26, 2023)#
This is a minor change performed from v0.1.6-alpha and adaptations, bug fixes and improvements for issues identified.
Adaptations and Features#
Feature Add
watex.utils.get2dtensor()for getting the tensor from 3D to 2D after signal recovery withwatex.methods.Processing.zrestore().Feature Add skew visualization:
watex.utils.plot_skew()for phase-sensitive visualization;watex.view.TPlot.plotSkew()for a consistent plot for phase-sensitive visualizationEnhancement Visualizes the phase tensors with
watex.view.TPlot.plot_phase_tensors().Feature Load Huayuan SEG- EDI datasets from
watex.datasets.load_huayuan().Enhancement It is no longer useful to set the keyword parameter
optionofwatex.methods.Processing.getValidTensors()toNoneevery times to get the valid tensors. The default implementation is henceforth set toNoneand returns the valid tensors after the quality control ( Seewatex.methods.Processing.qc()). So, to export the valid tensors as EDI files, set explicitly theoptionto'write'instead. For instance:>>> import watex as wx >>> edis = wx.fetch_data ('huayuan', samples=45, as_frame =True, clear_cache=True ).edi >>> Z = wx.EMProcessing().fit(edis).getValidTensors (tol =0.3 ) # outputs valid 3D new Impedance tensors with >=70% assertion of data representativity >>> wx.EMProcessing().fit(edis).getValidTensors (tol =0.3 , option ='write') # export tensors.
Enhancement Enable the skew dimensional plot with the combination with
watex.methods.Processingandwatex.view.plot2d().Feature Add new features with strike (
watex.utils.plot_strike()) and confidence plots in the EDI data (watex.utils.plot_confidence_in()). The latter is useful to know the signals to recover and useless frequencies for deletion.
Bug fixes#
Fix Warn user when DC-parameters can be computed because of constraints (fixed
AttributeErrorinwatex.methods.ResistivityProfiling.summary())Fix add
openpyxlas the hard dependency at the initiliation of the package to avoid crashing whenwatex.geologymodule is called.Fix Bug fixed when calling the fine-tuned models from
watex.GridSearchMultipleobjet. Henceforth models can be fetched aswatex.utils.box.Boxspaceobject that saves the estimator parameters, model names and cv results.Fix when building the
watexdocumentation,watex.view.TPlot.plot_phase_tensors()calls MTpy imaging module which call matplotlib in turn to update MTpy propers colors. However, it does not recognizecmap_din thecmapdict.update(cm.cmap_d)of code line 252 by showing andAttributeErrorlike below:Unexpected failing examples: /home/docs/checkouts/readthedocs.org/user_builds/watex/checkouts/master/examples/methods/plot_phase_tensors.py failed leaving traceback: Traceback (most recent call last): ... import mtpy.imaging.mtcolors as mtcl File "/home/docs/checkouts/readthedocs.org/user_builds/watex/envs/master/lib/python3.10/site-packages/mtpy/imaging/mtcolors.py", line 252, in <module> cmapdict.update(cm.cmap_d) File "/home/docs/checkouts/readthedocs.org/user_builds/watex/envs/master/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 224, in __getattr__ raise AttributeError( AttributeError: module 'matplotlib.cm' has no attribute 'cmap_d'
To fix it and let the doc building correctly with the latest version of matplotlib, uncomment the examples in gallery
methods.plot_phase_tensors.pywatex.view.TPlot.plot_phase_tensors()object tplot rather than using the matplotlib colormaps instead since MTpy proper colors don’t work. An error will raise in both case…Fix Bug fixed with
watex.view.TPlot.plot_phase_tensors()using Matplotlib version 3.5.3 max. The latest version will yield an attribute error due to the use of cmap_d in updating MTpy proper colorscmapdict.update(cm.cmap_d).Fix Bug fixed in loading the
watex.models.displayCVTables()fromwatex.models.GridSearchMultiple. Use try -except instead to accept the fine-tuned models directly fromwatex.exlib.GridSearchCVorwatex.models.GridSearchMultipleorwatex.models.GridSearchFix Bug fixed in the new implementation of quality control
watex.methods.Processing.qc(). No need to supply EDI media-files orediObjsas a positional argument sinceinspectis used to assert whether thewatex.methods.Processingis called yet.