hdmf-dev / hdmf
Showing 1 of 4 files from the diff.

@@ -598,12 +598,12 @@
Loading
598 598
        if spec.name is None:
599 599
            name = cls.convert_dt_name(spec)
600 600
        name_stack.append(name)
601 -
        if name in all_names:
602 -
            name = "_".join(name_stack)
601 +
        name = '__'.join(name_stack)
603 602
        all_names[name] = spec
604 603
        if isinstance(spec, BaseStorageSpec):
605 604
            if not (spec.data_type_def is None and spec.data_type_inc is None):
606 605
                # don't get names for components in data_types
606 +
                name_stack.pop()
607 607
                return
608 608
            for subspec in spec.attributes:
609 609
                cls.__get_fields(name_stack, all_names, subspec)
@@ -643,10 +643,6 @@
Loading
643 643
    def map_attr(self, **kwargs):
644 644
        """ Map an attribute to spec. Use this to override default behavior """
645 645
        attr_name, spec = getargs('attr_name', 'spec', kwargs)
646 -
        if hasattr(spec, 'name') and spec.name is not None:
647 -
            n = spec.name
648 -
        elif hasattr(spec, 'data_type_def') and spec.data_type_def is not None:
649 -
            n = spec.data_type_def  # noqa: F841
650 646
        self.__spec2attr[spec] = attr_name
651 647
        self.__attr2spec[attr_name] = spec
652 648
Files Coverage
src/hdmf 68.68%
Project Totals (24 files) 68.68%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
Untitled
Untitled
1
coverage:
2
  status:
3
    project:
4
      default:
5
        # Don't allow overall project coverage to be dropped more than
6
        # 2%
7
        threshold: 2
8
    patch:
9
      default:
10
        # 75% of the changed code must be covered by tests
11
        threshold: 25
12
        only_pulls: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading