Skip to content

Commit

Permalink
v2.6.2 Add ParamInfo for mid_points on Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesParrott committed Nov 4, 2023
1 parent e8a3cbd commit 04363a2
Show file tree
Hide file tree
Showing 47 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sDNA_GH:
- Displays the results from sDNA by colouring a new layer of new polylines or the original ones.

## User manual.
__version__ = '2.6.1'
__version__ = '2.6.2'

## Table of contents

Expand Down
Binary file modified README.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion dev/tests/create_random_grid_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

from random import random as random_num
from math import trunc as floor # for an int, not a float. math.floor(2.33) == 2.0; math.trunc(2.33) == 2
Expand Down
Binary file modified sDNA_GH/components/automatically_built/Config.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Parse_Data.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Read_Geom.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Read_Shp.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Read_Usertext.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Recolour_Objects.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Self_test.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Write_Shp.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/Write_Usertext.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Access_Map.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Geodesics.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Hulls.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Int_From_OD.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Integral.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Learn.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Line_Measures.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Net_Radii.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Predict.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Prepare.ghuser
Binary file not shown.
Binary file modified sDNA_GH/components/automatically_built/sDNA_Skim.ghuser
Binary file not shown.
2 changes: 1 addition & 1 deletion sDNA_GH/custom/data_cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import logging
import warnings
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/gdm_from_GH_Datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import logging
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/logging_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# SOFTWARE.

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/options_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'
"""
Functions to override namedtuples, from dicts, toml files
and other named tuples e.g. for options data structures.
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/pyshp_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'
""" Reads .shp files, and parses data and writes .shp files from any iterable.
"""

Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/add_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

from collections import OrderedDict
import logging
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/basic/ghdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import Rhino
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/basic/quacks_like.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import abc
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/basic/smart_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import logging
import inspect
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import os
import shutil
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/helpers/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import os
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/helpers/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# SOFTWARE.

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import os
import logging
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/helpers/rhino_gh_geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import os
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/inserter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import logging
import collections
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/name_mapper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import logging
import collections
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/custom/skel/tools/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import logging
Expand Down
13 changes: 9 additions & 4 deletions sDNA_GH/custom/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import os
import sys
Expand Down Expand Up @@ -2415,6 +2415,12 @@ class Options(data_cruncher.SpikeIsolatingQuantileOptions):
+'the method in class_spacing if '
+'unset.'
)
))
,('mid_points', add_params.ParamInfo(
param_Class = Param_ScriptVariable
,Description = ('Mid-points of the classes in the '
+'legend. '
)
))
)

Expand Down Expand Up @@ -2738,16 +2744,15 @@ def format_number(x, format_str):
gdm = gdm_from_GH_Datatree.GeomDataMapping(gen_exp)

#rename for retvals
plot_min, plot_max, class_bounds = x_min, x_max, inter_class_bounds
plot_min, plot_max = x_min, x_max

locs = locals().copy()
return tuple(locs[retval] for retval in self.retvals)

retvals = 'plot_min', 'plot_max', 'gdm', 'mid_points', 'class_bounds'
retvals = 'plot_min', 'plot_max', 'gdm', 'mid_points', 'inter_class_bounds'
component_outputs = retvals[:2] + ('Data', 'Geom') + retvals[-2:]



class ObjectsRecolourer(sDNA_GH_Tool):

class Options(object):
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/dev_tools/dev_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import os
import logging
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/dev_tools/unload_sDNA_GH.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


from ghpythonlib.componentbase import executingcomponent as component
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'



Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"""

__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/tests/test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'


import sys
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/tests/unit_tests/sDNA_GH_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion sDNA_GH/tests/unit_tests/skel_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


__author__ = 'James Parrott'
__version__ = '2.6.1'
__version__ = '2.6.2'

import sys
import os
Expand Down

0 comments on commit 04363a2

Please sign in to comment.