src/proteingnn/data.py
def create_from_json(cls, path: Optional[AnyPath] = None):
        """Create instance from json configuration.

        See create_from_dict for details.
        """
        if path is None:
            path = 'dataset/config.json'

        path = Path(path)
        if not path.exists():
            raise FileNotFoundError(f'Config json {path} not found.')

        with path.open('r') as f:
            config = json.load(f)

        return cls.create_from_config(config)
Create instance from json configuration.

        See create_from_dict for details.
        
Create instance from json configuration.
See create_from_dict for details.
Create instance from json configuration . See create_from_dict for details .
def create_from_json(cls, path: Optional[AnyPath] = None):
        if path is None:
            path = 'dataset/config.json'
        path = Path(path)
        if not path.exists():
            raise FileNotFoundError(f'Config json {path} not found.')
        with path.open('r') as f:
            config = json.load(f)
        return cls.create_from_config(config)
def create_from_json ( cls , path : Optional [ AnyPath ] = None ) : if path is None : path = 'dataset/config.json' path = Path ( path ) if not path . exists ( ) : raise FileNotFoundError ( f'Config json {path} not found.' ) with path . open ( 'r' ) as f : config = json . load ( f ) return cls . create_from_config ( config )
Create instance from json configuration.
Create instance from json configuration .
"""Create instance from json configuration.

        See create_from_dict for details.
        """
cls
path
Optional[AnyPath]