BlueBrain / snap

@@ -688,11 +688,12 @@
Loading
688 688
689 689
        return NeuronModelsHelper(self._properties, self)
690 690
691 -
    @property
692 -
    def h5_filepath(self):  # pylint: disable=inconsistent-return-statements
691 +
    @cached_property
692 +
    def h5_filepath(self):
693 693
        """Get the H5 nodes file associated with population."""
694 694
        for node_conf in self._circuit.config["networks"]["nodes"]:
695 695
            h5_filepath = node_conf["nodes_file"]
696 696
            storage = libsonata.NodeStorage(h5_filepath)
697 697
            if self.name in storage.population_names:  # pylint: disable=unsupported-membership-test
698 698
                return h5_filepath
699 +
        raise BluepySnapError(f"h5_filepath not found for population '{self.name}'")

@@ -845,11 +845,12 @@
Loading
845 845
            omit_edge_count = lambda x: x[:2]
846 846
            return map(omit_edge_count, it)
847 847
848 -
    @property
849 -
    def h5_filepath(self):  # pylint: disable=inconsistent-return-statements
848 +
    @cached_property
849 +
    def h5_filepath(self):
850 850
        """Get the H5 edges file associated with population."""
851 851
        for edge_conf in self._circuit.config["networks"]["edges"]:
852 852
            h5_filepath = edge_conf["edges_file"]
853 853
            storage = libsonata.EdgeStorage(h5_filepath)
854 854
            if self.name in storage.population_names:  # pylint: disable=unsupported-membership-test
855 855
                return h5_filepath
856 +
        raise BluepySnapError(f"h5_filepath not found for population '{self.name}'")

@@ -32,10 +32,12 @@
Loading
32 32
            from bluepysnap.frame_report import SomaReport
33 33
34 34
            cls = SomaReport
35 -
        else:
35 +
        elif report_type == "all":
36 36
            from bluepysnap.frame_report import CompartmentReport
37 37
38 38
            cls = CompartmentReport
39 +
        else:
40 +
            raise BluepySnapError(f"Report {name}: format {report_type} not yet supported.")
39 41
40 42
        res[name] = cls(sim, name)
41 43
    return res
Files Coverage
bluepysnap 100.00%
Project Totals (23 files) 100.00%
bluepysnap-py39
Build #2614275378 -
pytest

No yaml found.

Create your codecov.yml to customize your Codecov experience

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