Coretex
local_custom_sample.py
1
# Copyright (C) 2023 Coretex LLC
2
3
# This file is part of Coretex.ai
4
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU Affero General Public License as
7
# published by the Free Software Foundation, either version 3 of the
8
# License, or (at your option) any later version.
9
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU Affero General Public License for more details.
14
15
# You should have received a copy of the GNU Affero General Public License
16
# along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18
from
pathlib
import
Path
19
20
from
.custom_sample_data
import
CustomSampleData
21
from
..local_sample
import
LocalSample
22
23
24
class
LocalCustomSample
(
LocalSample
[CustomSampleData]):
25
26
"""
27
Represents the local custom Sample class
28
which is used for working with Other Task locally
29
"""
30
31
def
load
(self) -> CustomSampleData:
32
"""
33
Returns
34
-------
35
CustomSampleData -> file and folder contents of the custom sample
36
"""
37
return
CustomSampleData
(Path(self.
path
path
path))
coretex.entities.sample.custom_sample.custom_sample_data.CustomSampleData
Definition:
custom_sample_data.py:21
coretex.entities.sample.custom_sample.local_custom_sample.LocalCustomSample
Definition:
local_custom_sample.py:24
coretex.entities.sample.custom_sample.local_custom_sample.LocalCustomSample.load
CustomSampleData load(self)
Definition:
local_custom_sample.py:31
coretex.entities.sample.local_sample.LocalSample
Definition:
local_sample.py:29
coretex.entities.sample.local_sample.LocalSample.path
Path path(self)
Definition:
local_sample.py:51
coretex.entities.sample.sample.Sample.path
Path path(self)
Definition:
sample.py:41
coretex
entities
sample
custom_sample
local_custom_sample.py
Generated by
1.9.1