File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from __future__ import print_function
1+ # ruff: noqa: F401
22
33import os
44
103103 pass
104104
105105
106- __all__ = [
107- "WINDOWS" ,
108- "LINUX" ,
109- "OSX" ,
110- "MONO" ,
111- "IPY" ,
112- "RHINO" ,
113- "BLENDER" ,
114- "PY2" ,
115- "PY3" ,
116- "devday" ,
117- "is_windows" ,
118- "is_linux" ,
119- "is_osx" ,
120- "is_mono" ,
121- "is_ironpython" ,
122- "is_rhino" ,
123- "is_blender" ,
124- "is_grasshopper" ,
125- "get" ,
126- "json_dump" ,
127- "json_load" ,
128- "json_dumps" ,
129- "json_dumpz" ,
130- "json_loads" ,
131- "json_loadz" ,
132- ]
133-
134106__all_plugins__ = [
135107 "compas.geometry.booleans_shapely" ,
136108 "compas.scene" ,
Original file line number Diff line number Diff line change 22
33import io
44from contextlib import contextmanager
5-
6- try :
7- from urllib .request import urlopen
8- except ImportError :
9- from urllib2 import urlopen
5+ from urllib .request import urlopen
106
117
128@contextmanager
Original file line number Diff line number Diff line change 11# recipes with itertools
22# see: https://docs.python.org/3.6/library/itertools.html
3- from __future__ import absolute_import
4- from __future__ import division
5- from __future__ import print_function
63
74from functools import reduce
85from itertools import chain
1613except ImportError :
1714 from itertools import izip_longest as zip_longest # type: ignore
1815
19- __all__ = [
20- "normalize_values" ,
21- "remap_values" ,
22- "meshgrid" ,
23- "linspace" ,
24- "flatten" ,
25- "reshape" ,
26- "pairwise" ,
27- "window" ,
28- "iterable_like" ,
29- ]
30-
3116
3217def normalize_values (values , new_min = 0.0 , new_max = 1.0 ):
3318 """Normalize a list of numbers to the range between new_min and new_max.
Original file line number Diff line number Diff line change 2828
2929"""
3030
31- from __future__ import absolute_import
32- from __future__ import division
33- from __future__ import print_function
34-
3531from contextlib import contextmanager
3632from decimal import Decimal
3733from warnings import warn
3834
3935import compas
4036from compas .data import Data
4137
42- __all__ = ["Tolerance" , "TOL" ]
43-
4438
4539class Tolerance (Data ):
4640 """Tolerance settings for geometric operations.
You can’t perform that action at this time.
0 commit comments