Skip to main content
Ctrl+K
The documentation pages are currently work-in-progress, if you have any suggestions for improvements please raise an issue on the caf.base repository.

CAF.base 0.4.1+16.g3169f23

  • Quick Start
  • User Guide
  • API Reference
  • Changelog
    • Issues
    • CAF Handbook
  • GitHub
  • Quick Start
  • User Guide
  • API Reference
  • Changelog
  • Issues
  • CAF Handbook
  • GitHub

Section Navigation

  • caf.base
    • BalancingZones
      • BalancingZones.__init__
      • BalancingZones.get_zoning
      • BalancingZones.load
      • BalancingZones.save
      • BalancingZones.zoning_groups
    • DVector
      • DVector.__init__
      • DVector.add_segments
      • DVector.add_value_to_subset
      • DVector.aggregate
      • DVector.aggregate_comp_zones
      • DVector.balance_by_segments
      • DVector.calc_rmse
      • DVector.combine_from_dic
      • DVector.composite_zoning
      • DVector.concat
      • DVector.concat_from_dir
      • DVector.concat_list
      • DVector.concat_to_comp_zoning
      • DVector.copy
      • DVector.drop_by_segment_values
      • DVector.expand_to_other
      • DVector.fill
      • DVector.fillna
      • DVector.filter_segment_value
      • DVector.get_slice
      • DVector.ipf
      • DVector.load
      • DVector.old_to_new_dvec
      • DVector.overlap
      • DVector.remove_zoning
      • DVector.rename_segment
      • DVector.save
      • DVector.select_zone
      • DVector.split_by_agg_zoning
      • DVector.split_by_other
      • DVector.sum
      • DVector.sum_is_close
      • DVector.sum_zoning
      • DVector.to_ie
      • DVector.trans_and_comp
      • DVector.trans_seg_from_lookup
      • DVector.translate_segment
      • DVector.translate_zoning
      • DVector.validate_ipf_targets
      • DVector.write_sector_reports
    • Segment
      • Segment.add_corr_from_df
      • Segment.drop_indices
      • Segment.extract_values
      • Segment.get_alias
      • Segment.get_value_alias
      • Segment.lookup_indices
      • Segment.translate_exclusion
      • Segment.translate_segment
      • Segment.value_regex
    • Segmentation
      • Segmentation.__init__
      • Segmentation.add_segment
      • Segmentation.aggregate
      • Segmentation.convert_slice_name
      • Segmentation.convert_slice_tuple
      • Segmentation.copy
      • Segmentation.find_files
      • Segmentation.generate_slice_name
      • Segmentation.get_segment
      • Segmentation.get_segment_values
      • Segmentation.has_time_period_segments
      • Segmentation.ind
      • Segmentation.is_subset
      • Segmentation.iter_slices
      • Segmentation.load
      • Segmentation.lookup_ind
      • Segmentation.overlap
      • Segmentation.reinit
      • Segmentation.remove_segment
      • Segmentation.save
      • Segmentation.subset_difference
      • Segmentation.translate_segment
      • Segmentation.update_subsets
      • Segmentation.validate_segmentation
      • Segmentation.validate_slice
    • SegmentationInput
      • SegmentationInput.enums
      • SegmentationInput.names_match_segments
      • SegmentationInput.no_copied_names
    • ZoningSystem
      • ZoningSystem.__init__
      • ZoningSystem.check_all_columns
      • ZoningSystem.copy
      • ZoningSystem.external
      • ZoningSystem.get_inverse_subset
      • ZoningSystem.get_subset
      • ZoningSystem.get_zoning
      • ZoningSystem.internal
      • ZoningSystem.load
      • ZoningSystem.old_to_new_zoning
      • ZoningSystem.save
      • ZoningSystem.trans_df_to_dict
      • ZoningSystem.translate
      • ZoningSystem.translation_column_name
      • ZoningSystem.validate_translation_data
      • ZoningSystem.zone_descriptions
      • ZoningSystem.zone_names
      • ZoningSystem.zoning_from_df_col
      • ZoningSystem.zoning_from_shapefile
    • caf.base.data_structures
      • deepcopy
      • listdir
      • normalise_column_name
      • BalancingZones
        • BalancingZones.__init__
        • BalancingZones.get_zoning
        • BalancingZones.load
        • BalancingZones.save
        • BalancingZones.zoning_groups
      • Collection
      • DVector
        • DVector.__init__
        • DVector.add_segments
        • DVector.add_value_to_subset
        • DVector.aggregate
        • DVector.aggregate_comp_zones
        • DVector.balance_by_segments
        • DVector.calc_rmse
        • DVector.combine_from_dic
        • DVector.composite_zoning
        • DVector.concat
        • DVector.concat_from_dir
        • DVector.concat_list
        • DVector.concat_to_comp_zoning
        • DVector.copy
        • DVector.drop_by_segment_values
        • DVector.expand_to_other
        • DVector.fill
        • DVector.fillna
        • DVector.filter_segment_value
        • DVector.get_slice
        • DVector.ipf
        • DVector.load
        • DVector.old_to_new_dvec
        • DVector.overlap
        • DVector.remove_zoning
        • DVector.rename_segment
        • DVector.save
        • DVector.select_zone
        • DVector.split_by_agg_zoning
        • DVector.split_by_other
        • DVector.sum
        • DVector.sum_is_close
        • DVector.sum_zoning
        • DVector.to_ie
        • DVector.trans_and_comp
        • DVector.trans_seg_from_lookup
        • DVector.translate_segment
        • DVector.translate_zoning
        • DVector.validate_ipf_targets
        • DVector.write_sector_reports
      • IpfTarget
        • IpfTarget.__init__
        • IpfTarget.check_compatibility
        • IpfTarget.singly_zoned
      • Number
      • Path
        • Path.absolute
        • Path.chmod
        • Path.cwd
        • Path.exists
        • Path.expanduser
        • Path.glob
        • Path.group
        • Path.hardlink_to
        • Path.home
        • Path.is_block_device
        • Path.is_char_device
        • Path.is_dir
        • Path.is_fifo
        • Path.is_file
        • Path.is_mount
        • Path.is_socket
        • Path.is_symlink
        • Path.iterdir
        • Path.lchmod
        • Path.link_to
        • Path.lstat
        • Path.mkdir
        • Path.open
        • Path.owner
        • Path.read_bytes
        • Path.read_text
        • Path.readlink
        • Path.rename
        • Path.replace
        • Path.resolve
        • Path.rglob
        • Path.rmdir
        • Path.samefile
        • Path.stat
        • Path.symlink_to
        • Path.touch
        • Path.unlink
        • Path.write_bytes
        • Path.write_text
      • PathLike
      • SegConverter
        • SegConverter.get_conversion
      • Segment
        • Segment.add_corr_from_df
        • Segment.drop_indices
        • Segment.extract_values
        • Segment.get_alias
        • Segment.get_value_alias
        • Segment.lookup_indices
        • Segment.translate_exclusion
        • Segment.translate_segment
        • Segment.value_regex
      • Segmentation
        • Segmentation.__init__
        • Segmentation.add_segment
        • Segmentation.aggregate
        • Segmentation.convert_slice_name
        • Segmentation.convert_slice_tuple
        • Segmentation.copy
        • Segmentation.find_files
        • Segmentation.generate_slice_name
        • Segmentation.get_segment
        • Segmentation.get_segment_values
        • Segmentation.has_time_period_segments
        • Segmentation.ind
        • Segmentation.is_subset
        • Segmentation.iter_slices
        • Segmentation.load
        • Segmentation.lookup_ind
        • Segmentation.overlap
        • Segmentation.reinit
        • Segmentation.remove_segment
        • Segmentation.save
        • Segmentation.subset_difference
        • Segmentation.translate_segment
        • Segmentation.update_subsets
        • Segmentation.validate_segmentation
        • Segmentation.validate_slice
      • SegmentationSlice
        • SegmentationSlice.__init__
        • SegmentationSlice.add
        • SegmentationSlice.as_tuple
        • SegmentationSlice.from_tuple
        • SegmentationSlice.generate_name
        • SegmentationSlice.get
        • SegmentationSlice.remove
        • SegmentationSlice.replace
      • SegmentsSuper
        • SegmentsSuper.values
        • SegmentsSuper.get_segment
      • TimeFormat
        • TimeFormat.get_time_periods
        • TimeFormat.conversion_order
        • TimeFormat.avg_hour_to_total_hour_factors
        • TimeFormat.total_hour_to_avg_hour_factors
        • TimeFormat.get
        • TimeFormat.get_conversion_factors
      • TranslationWeighting
        • TranslationWeighting.get_suffix
      • ZoningSystem
        • ZoningSystem.__init__
        • ZoningSystem.check_all_columns
        • ZoningSystem.copy
        • ZoningSystem.external
        • ZoningSystem.get_inverse_subset
        • ZoningSystem.get_subset
        • ZoningSystem.get_zoning
        • ZoningSystem.internal
        • ZoningSystem.load
        • ZoningSystem.old_to_new_zoning
        • ZoningSystem.save
        • ZoningSystem.trans_df_to_dict
        • ZoningSystem.translate
        • ZoningSystem.translation_column_name
        • ZoningSystem.validate_translation_data
        • ZoningSystem.zone_descriptions
        • ZoningSystem.zone_names
        • ZoningSystem.zoning_from_df_col
        • ZoningSystem.zoning_from_shapefile
      • ZoningSystemMetaData
      • SegmentationError
      • SegmentationWarning
      • TranslationError
      • ZoningError
    • caf.base.segmentation
      • NamedTuple
      • ordered_set
      • product_multiindex
      • BaseConfig
        • BaseConfig.from_yaml
        • BaseConfig.load_yaml
        • BaseConfig.save_yaml
        • BaseConfig.to_yaml
        • BaseConfig.write_example
      • Path
        • Path.absolute
        • Path.chmod
        • Path.cwd
        • Path.exists
        • Path.expanduser
        • Path.glob
        • Path.group
        • Path.hardlink_to
        • Path.home
        • Path.is_block_device
        • Path.is_char_device
        • Path.is_dir
        • Path.is_fifo
        • Path.is_file
        • Path.is_mount
        • Path.is_socket
        • Path.is_symlink
        • Path.iterdir
        • Path.lchmod
        • Path.link_to
        • Path.lstat
        • Path.mkdir
        • Path.open
        • Path.owner
        • Path.read_bytes
        • Path.read_text
        • Path.readlink
        • Path.rename
        • Path.replace
        • Path.resolve
        • Path.rglob
        • Path.rmdir
        • Path.samefile
        • Path.stat
        • Path.symlink_to
        • Path.touch
        • Path.unlink
        • Path.write_bytes
        • Path.write_text
      • PathLike
      • Segment
        • Segment.add_corr_from_df
        • Segment.drop_indices
        • Segment.extract_values
        • Segment.get_alias
        • Segment.get_value_alias
        • Segment.lookup_indices
        • Segment.translate_exclusion
        • Segment.translate_segment
        • Segment.value_regex
      • Segmentation
        • Segmentation.__init__
        • Segmentation.add_segment
        • Segmentation.aggregate
        • Segmentation.convert_slice_name
        • Segmentation.convert_slice_tuple
        • Segmentation.copy
        • Segmentation.find_files
        • Segmentation.generate_slice_name
        • Segmentation.get_segment
        • Segmentation.get_segment_values
        • Segmentation.has_time_period_segments
        • Segmentation.ind
        • Segmentation.is_subset
        • Segmentation.iter_slices
        • Segmentation.load
        • Segmentation.lookup_ind
        • Segmentation.overlap
        • Segmentation.reinit
        • Segmentation.remove_segment
        • Segmentation.save
        • Segmentation.subset_difference
        • Segmentation.translate_segment
        • Segmentation.update_subsets
        • Segmentation.validate_segmentation
        • Segmentation.validate_slice
      • SegmentationInput
        • SegmentationInput.enums
        • SegmentationInput.names_match_segments
        • SegmentationInput.no_copied_names
      • SegmentationSlice
        • SegmentationSlice.__init__
        • SegmentationSlice.add
        • SegmentationSlice.as_tuple
        • SegmentationSlice.from_tuple
        • SegmentationSlice.generate_name
        • SegmentationSlice.get
        • SegmentationSlice.remove
        • SegmentationSlice.replace
      • SegmentsSuper
        • SegmentsSuper.values
        • SegmentsSuper.get_segment
      • SegmentationError
      • SegmentationWarning
    • caf.base.segments
      • BaseConfig
        • BaseConfig.from_yaml
        • BaseConfig.load_yaml
        • BaseConfig.save_yaml
        • BaseConfig.to_yaml
        • BaseConfig.write_example
      • ConfigDict
      • Exclusion
        • Exclusion.__init__
        • Exclusion.build_index
      • Path
        • Path.absolute
        • Path.chmod
        • Path.cwd
        • Path.exists
        • Path.expanduser
        • Path.glob
        • Path.group
        • Path.hardlink_to
        • Path.home
        • Path.is_block_device
        • Path.is_char_device
        • Path.is_dir
        • Path.is_fifo
        • Path.is_file
        • Path.is_mount
        • Path.is_socket
        • Path.is_symlink
        • Path.iterdir
        • Path.lchmod
        • Path.link_to
        • Path.lstat
        • Path.mkdir
        • Path.open
        • Path.owner
        • Path.read_bytes
        • Path.read_text
        • Path.readlink
        • Path.rename
        • Path.replace
        • Path.resolve
        • Path.rglob
        • Path.rmdir
        • Path.samefile
        • Path.stat
        • Path.symlink_to
        • Path.touch
        • Path.unlink
        • Path.write_bytes
        • Path.write_text
      • SegConverter
        • SegConverter.get_conversion
      • Segment
        • Segment.add_corr_from_df
        • Segment.drop_indices
        • Segment.extract_values
        • Segment.get_alias
        • Segment.get_value_alias
        • Segment.lookup_indices
        • Segment.translate_exclusion
        • Segment.translate_segment
        • Segment.value_regex
      • SegmentsSuper
        • SegmentsSuper.values
        • SegmentsSuper.get_segment
    • caf.base.zoning
      • normalise_column_name
      • Any
      • BalancingZones
        • BalancingZones.__init__
        • BalancingZones.get_zoning
        • BalancingZones.load
        • BalancingZones.save
        • BalancingZones.zoning_groups
      • Path
        • Path.absolute
        • Path.chmod
        • Path.cwd
        • Path.exists
        • Path.expanduser
        • Path.glob
        • Path.group
        • Path.hardlink_to
        • Path.home
        • Path.is_block_device
        • Path.is_char_device
        • Path.is_dir
        • Path.is_fifo
        • Path.is_file
        • Path.is_mount
        • Path.is_socket
        • Path.is_symlink
        • Path.iterdir
        • Path.lchmod
        • Path.link_to
        • Path.lstat
        • Path.mkdir
        • Path.open
        • Path.owner
        • Path.read_bytes
        • Path.read_text
        • Path.readlink
        • Path.rename
        • Path.replace
        • Path.resolve
        • Path.rglob
        • Path.rmdir
        • Path.samefile
        • Path.stat
        • Path.symlink_to
        • Path.touch
        • Path.unlink
        • Path.write_bytes
        • Path.write_text
      • PathLike
      • Segmentation
        • Segmentation.__init__
        • Segmentation.add_segment
        • Segmentation.aggregate
        • Segmentation.convert_slice_name
        • Segmentation.convert_slice_tuple
        • Segmentation.copy
        • Segmentation.find_files
        • Segmentation.generate_slice_name
        • Segmentation.get_segment
        • Segmentation.get_segment_values
        • Segmentation.has_time_period_segments
        • Segmentation.ind
        • Segmentation.is_subset
        • Segmentation.iter_slices
        • Segmentation.load
        • Segmentation.lookup_ind
        • Segmentation.overlap
        • Segmentation.reinit
        • Segmentation.remove_segment
        • Segmentation.save
        • Segmentation.subset_difference
        • Segmentation.translate_segment
        • Segmentation.update_subsets
        • Segmentation.validate_segmentation
        • Segmentation.validate_slice
      • SegmentationInput
        • SegmentationInput.enums
        • SegmentationInput.names_match_segments
        • SegmentationInput.no_copied_names
      • TranslationWeighting
        • TranslationWeighting.get_suffix
      • ZoningSystem
        • ZoningSystem.__init__
        • ZoningSystem.check_all_columns
        • ZoningSystem.copy
        • ZoningSystem.external
        • ZoningSystem.get_inverse_subset
        • ZoningSystem.get_subset
        • ZoningSystem.get_zoning
        • ZoningSystem.internal
        • ZoningSystem.load
        • ZoningSystem.old_to_new_zoning
        • ZoningSystem.save
        • ZoningSystem.trans_df_to_dict
        • ZoningSystem.translate
        • ZoningSystem.translation_column_name
        • ZoningSystem.validate_translation_data
        • ZoningSystem.zone_descriptions
        • ZoningSystem.zone_names
        • ZoningSystem.zoning_from_df_col
        • ZoningSystem.zoning_from_shapefile
      • ZoningSystemMetaData
      • PerformanceWarning
      • TranslationError
      • TranslationWarning
      • ZoningError

Indices

  • General Index
  • Python Module Index
  • API Reference
  • caf.base
  • caf.base.data_structures
  • Segmentation
  • Segmentation.__init__

Segmentation.__init__#

Segmentation.__init__(config)[source]#
Parameters:

config (SegmentationInput)

previous

Segmentation

next

Segmentation.add_segment

On this page
  • Segmentation.__init__()
Edit on GitHub

© Copyright 2025, Transport for the North.

Created using Sphinx 9.0.4.

Built with the PyData Sphinx Theme 0.18.0.