Skip to content

Commit

Permalink
Merge pull request #1702 from HEXRD/increase-qfib-warning-threshold
Browse files Browse the repository at this point in the history
Increase qfib warning threshold to 1e8
  • Loading branch information
psavery committed May 17, 2024
2 parents d3550c7 + 710362f commit 64523ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hexrdgui/color_map_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from PySide6.QtGui import QColor
from PySide6.QtWidgets import QColorDialog

from matplotlib import cm
from matplotlib import colormaps as cm
import matplotlib.colors

import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion hexrdgui/indexing/fit_grains_results_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ def load_cmaps(self):

def update_cmap(self):
# Get the Colormap object from the name
self.cmap = matplotlib.cm.get_cmap(self.ui.color_maps.currentText())
self.cmap = matplotlib.colormaps.get_cmap(
self.ui.color_maps.currentText())
self.update_plot()

def reset_glyph_size(self, update_plot=True):
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/indexing/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def generate_orientation_fibers(self, config):

def orientation_fibers_generated(self):
# Perform some validation
qfib_warning_threshold = 5e7
qfib_warning_threshold = 1e8
if self.qfib.shape[1] > qfib_warning_threshold:
formatted = format_big_int(self.qfib.shape[1])
msg = (f'Over {formatted} test orientations were '
Expand Down
4 changes: 1 addition & 3 deletions packaging/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import click
import coloredlogs

import conda
import conda.cli.python_api as Conda
from conda_build import api as CondaBuild
from conda_build.config import Config
Expand Down Expand Up @@ -105,15 +106,12 @@ def build_conda_pack(base_path, tmp, hexrd_package_channel, hexrdgui_output_fold
# First build the hexrdgui package
recipe_path = str(base_path / '..' / 'conda.recipe')
config = Config()
config.channel = ['conda-forge']
config.channel_urls = ['conda-forge']
config.override_channels = True

if hexrdgui_output_folder is not None:
config.output_folder = hexrdgui_output_folder

if hexrd_package_channel is not None:
config.channel.insert(0, 'hexrd-channel')
config.channel_urls.insert(0, hexrd_package_channel)

# Determine the latest hexrd version in the hexrd_package_channel
Expand Down

0 comments on commit 64523ed

Please sign in to comment.