These are chat archives for glue-viz/glue-vispy-viewers
I got an error when
make html as below
File "/Users/penny/anaconda/lib/python2.7/site-packages/astropy/logger.py", line 187, in _showwarning
if not isinstance(args, AstropyWarning):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types
The full traceback has been saved in /var/folders/z0/ftx1hs8941s3b09whp8y82wm0000gn/T/sphinx-err-Ddqs6L.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at https://github.com/sphinx-doc/sphinx/issues. Thanks!
make: * [html] Error 1
conda install astropy
condais a mystary…
.htmlfile from that
doc/_build/htmldirectory, so I will check the code to see if it’s included? How to previewe it through my terminal, or just use
Chrometo open them?
open doc/_build/html/index.htmlfrom terminal if you like
__all__line in the
should a function with decor be included in the
__all__ or not? like
def _combine(subsets, operator):
_combineshould not be included
make htmlagain, but when I checked the new
doc/_build/html/api.htmlthere is no change...
python setup.py developand it could updates with my code change?
main glueso that later we could easily get our docs from it?
there is still a better performance of
scipy takes 1.323516 sec and floodfill takes 0.293942
while another thing is the
get pos time is 163.842682 sec
max_posis not found and assigned as
None, which might cause
TypeErrorfor the Cython code, so I add a loop to increase the region after each loop to make sure
max_posis assigned as a value...
# TODO: search_region and max_value is critical for the performance! data = self.transform(self.pos_data) # Map coordinates max_pos = None select_region = 4 # increase the search range after each loop to ensure the max_pos is found while max_pos is None: m1 = data > (self.selection_origin - select_region) m2 = data < (self.selection_origin + select_region) max_value = 0. # find a value larger than 0. pick_selected = np.argwhere(m1[:,0] & m1[:,1] & m2[:,0] & m2[:,1]) for item in pick_selected: index = tuple(self.pos_data[item].flatten()) if self.vol_data[index] > max_value: max_value = self.vol_data[index] max_pos = index select_region *= 2 return max_pos # list argument for flood_fill_3d.cyfill()
get_max_pos, but it could make it waaaaaay faster
tr = scatter.get_transform(map_from='canvas', map_to='visual')
trpos1 = tr.map((200, 200, -1)) trpos2 = tr.map((200, 200, +1))
trpos1 = trpos1[:3] / trpos1 trpos2 = trpos2[:3] / trpos2
trpos2are 3D vectors in visual space
trpos1is a 1D array with 3 elements
trpos2are two points in 3D so you can find the equation of a line between them