def get_site_by_id(self, site_id):
        try:
            return self._edit_session.query(Site).filter_by(id=site_id).first()
        except:
            return None

    # Variables methods
return a Site object that has an id=site_id
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/odmservices/series_service.py/SeriesService.get_site_by_id