spamlab-iee / os

An open source, cross-platform structural geology analysis software
GNU General Public License v3.0
25 stars 5 forks source link

Contour custom list error #25

Closed Shuffle20 closed 3 years ago

Shuffle20 commented 3 years ago

Hi, I'm trying to use the "Custom list" Contour option entering values separated by comma (as I always did with version 0.1.2f) , but I get the following error:

_Traceback (most recent call last): File "C:\Program Files\OpenStereo\pkgs\openstereo\os_base.py", line 2002, in item.dialog_ui.apply.clicked.connect(lambda: apply_action()) File "C:\Program Files\OpenStereo\pkgs\openstereo\ui\ui_interface.py", line 132, in apply_action main_window.plot_data() File "C:\Program Files\OpenStereo\pkgs\openstereo\os_base.py", line 1357, in plot_data self.plot_tree_item(item) File "C:\Program Files\OpenStereo\pkgs\openstereo\os_base.py", line 1335, in plot_tree_item self.projection_plot.plot_data(plot_item) File "C:\Program Files\OpenStereo\pkgs\openstereo\os_plot.py", line 414, in plot_data plot_item.n, File "C:\Program Files\OpenStereo\pkgs\openstereo\os_plot.py", line 674, in plot_contours b"[^-\d\.]+", contoursettings["intervals"] File "re.py", line 212, in split TypeError: cannot use a bytes pattern on a string-like object

Thanks

endarthur commented 3 years ago

Hi @Shuffle20 ,

I'll check later today, I'm fairly sure it's a bug from when I went from python 2 to 3.

endarthur commented 3 years ago

Hi @Shuffle20 ! Should be fixed in the new release: https://github.com/spamlab-iee/os/releases/tag/v2.0b12

Shuffle20 commented 3 years ago

works perfectly, thank you very much !