# Path: numjuggler/numbering.py
# class _Range(object):
# class LikeFunction(object):
#     def __init__(self, n1, n2=None):
#     def __contains__(self, value):
#     def __str__(self):
#     def __init__(self, pdict, log=False):
#     def __applyD(f, n):
#     def __applyL(f, n):
#     def __get_mapping(self, t):
#     def __call__(self, n, t):
#     def write_log_as_map(self, fname):
# def get_numbers(scards):
# def get_indices(scards):
# def _get_ranges_from_set(nn):
# def read_map_file(fname):
# def _parse_map_line(l):
# def _get_map_ranges(s):
# 
# Path: numjuggler/parser.py
# def fmt_gen(s):
#     def get_name(cls, cid):
#     def __init__(self, lines, ctype, pos, debug=None):
#     def _get_value_by_type(self, t):
#     def _set_value_by_type(self, t, v):
#     def geom_prefix(self):
#     def geom_prefix(self, value):
#     def geom_suffix(self):
#     def geom_suffix(self, value):
#     def print_debug(self, comment, key='tihv'):
#     def get_input(self, check_bad_chars=False):
#     def _protect_nums(self):
#     def get_values(self):
#     def get_refcells(self):
#     def get_geom(self):
#     def get_u(self):
#     def get_m(self):
#     def get_d(self):
#     def set_d(self, v):
#     def get_f(self, newv=None):
#     def get_imp(self, vals={}):
#     def remove_fill(self):
#     def card(self, wrap=False, comment=True):
#     def remove_spaces(self):
#     def apply_map(self, f):
# def _split_cell(input_, self):
# def _split_surface(input_):
# def _get_int(s):
# def _parse_tr(input_):
# def _split_data(input_):
# def is_commented(l):
# def is_fc_card(l):
# def is_blankline(l):
#     def get_cards(inp, debug=None, preservetabs=False):
#     def get_cards(inp, debug=None, preservetabs=False):
# def index_(line, chars='$&'):
# def get_cards_from_input(inp, debug=None, preservetabs=False):
#     def _yield(card, ct, ln):
#     def replace_tab(l, cln, preserve=False, ts=8):
# def get_blocks(cards):
# def are_close_vals(x, y, re=1e-6, ra=0.):
# def are_close_lists(x, y, re=1e-6, pci=[]):
# class __CIDClass(object):
# class Card(object):
# CID = __CIDClass()


import re
from numjuggler import numbering as mn
from numjuggler import parser as mp
             hlist.append(('cell',hcname))
             end=m.end()
             celline=''.join(cards[dcel[hcname]].lines)
             hcell=cell_card_string(celline).geom
             cellmod=cell.str[0:start]+                                  \
                 '\nC  Complementary cell %i start\n' %hcname  \
                 + '      '+complementary(hcell) +                          \
                 '\nC  Complementary cell %i end  \n' %hcname  \
                 + cell.str[end:]

          # complementary cell inserted  at the operator location
          cardstr.geom.str = cellmod

          cards[dcel[cname]].cstrg = True
          cards[dcel[cname]].lines = cardstr.get_lines()
       if wrtlog:
          logtab.append((int(cname),hlist))
       return
#########################################################################

    dcel={}
    wrtlog = False
    if logfile != '' :
      wrtlog = True
      logtab = []
    for i,c in enumerate(cards):
         if c.ctype == mp.CID.cell:
              c.get_values()
              dcel[c.name]=i
    for c in cards:

# Path: numjuggler/numbering.py
# class _Range(object):
# class LikeFunction(object):
#     def __init__(self, n1, n2=None):
#     def __contains__(self, value):
#     def __str__(self):
#     def __init__(self, pdict, log=False):
#     def __applyD(f, n):
#     def __applyL(f, n):
#     def __get_mapping(self, t):
#     def __call__(self, n, t):
#     def write_log_as_map(self, fname):
# def get_numbers(scards):
# def get_indices(scards):
# def _get_ranges_from_set(nn):
# def read_map_file(fname):
# def _parse_map_line(l):
# def _get_map_ranges(s):
# 
# Path: numjuggler/parser.py
# def fmt_gen(s):
#     def get_name(cls, cid):
#     def __init__(self, lines, ctype, pos, debug=None):
#     def _get_value_by_type(self, t):
#     def _set_value_by_type(self, t, v):
#     def geom_prefix(self):
#     def geom_prefix(self, value):
#     def geom_suffix(self):
#     def geom_suffix(self, value):
#     def print_debug(self, comment, key='tihv'):
#     def get_input(self, check_bad_chars=False):
#     def _protect_nums(self):
#     def get_values(self):
#     def get_refcells(self):
#     def get_geom(self):
#     def get_u(self):
#     def get_m(self):
#     def get_d(self):
#     def set_d(self, v):
#     def get_f(self, newv=None):
#     def get_imp(self, vals={}):
#     def remove_fill(self):
#     def card(self, wrap=False, comment=True):
#     def remove_spaces(self):
#     def apply_map(self, f):
# def _split_cell(input_, self):
# def _split_surface(input_):
# def _get_int(s):
# def _parse_tr(input_):
# def _split_data(input_):
# def is_commented(l):
# def is_fc_card(l):
# def is_blankline(l):
#     def get_cards(inp, debug=None, preservetabs=False):
#     def get_cards(inp, debug=None, preservetabs=False):
# def index_(line, chars='$&'):
# def get_cards_from_input(inp, debug=None, preservetabs=False):
#     def _yield(card, ct, ln):
#     def replace_tab(l, cln, preserve=False, ts=8):
# def get_blocks(cards):
# def are_close_vals(x, y, re=1e-6, ra=0.):
# def are_close_lists(x, y, re=1e-6, pci=[]):
# class __CIDClass(object):
# class Card(object):
# CID = __CIDClass()


# Path: numjuggler/string_cells.py
import re
from numjuggler import numbering as mn
from numjuggler import parser as mp

             hlist.append(('cell',hcname))
             end=m.end()
             celline=''.join(cards[dcel[hcname]].lines)
             hcell=cell_card_string(celline).geom
             cellmod=cell.str[0:start]+                                  \
                 '\nC  Complementary cell %i start\n' %hcname  \
                 + '      '+complementary(hcell) +                          \
                 '\nC  Complementary cell %i end  \n' %hcname  \
                 + cell.str[end:]

          # complementary cell inserted  at the operator location
          cardstr.geom.str = cellmod

          cards[dcel[cname]].cstrg = True
          cards[dcel[cname]].lines = cardstr.get_lines()
       if wrtlog:
          logtab.append((int(cname),hlist))
       return
#########################################################################

    dcel={}
    wrtlog = False
    if logfile != '' :
      wrtlog = True
      logtab = []
    for i,c in enumerate(cards):
         if c.ctype == mp.CID.cell:
              c.get_values()
              dcel[c.name]=i
    for c in cards:

         if c.ctype == mp.CID.cell: