コード例 #1
0
def test_model_section(test_model):
    group = ModelSection(test_model, 'junctions')
    print(group)

    bayside = Model(MODEL_FULL_FEATURES__NET_PATH)

    a = bayside.inp.junctions
    print(a)
コード例 #2
0
    def orifices(self):
        """
        collect all useful and available data related model orifices and
        organize in one dataframe.
        """

        df = ModelSection(self, 'orifices')
        self._orifices_df = df

        return df
コード例 #3
0
    def subcatchments(self):
        """
        collect all useful and available data related subcatchments and organize
        in one dataframe.
        """
        if self._subcatchments_df is not None:
            return self._subcatchments_df

        df = ModelSection(model=self, **COMPOSITE_OBJECTS['subcatchments'])
        self._subcatchments_df = df
        return df
コード例 #4
0
ファイル: core.py プロジェクト: waternk/swmmio
    def pumps(self):
        """
        collect all useful and available data related model pumps and
        organize in one dataframe.
        >>> import swmmio
        >>> from swmmio.tests.data import MODEL_FULL_FEATURES_XY
        >>> model = swmmio.Model(MODEL_FULL_FEATURES_XY)
        >>> pumps = model.pumps()
        >>> pumps[['PumpCurve', 'InitStatus']]
             PumpCurve InitStatus
        Name
        C2    P1_Curve         ON
        >>> pumps = model.pumps.to_gdf()
        >>> pumps
        """

        pumps_df = ModelSection(self, 'pumps')
        self._pumps_df = pumps_df

        return pumps_df