Skip to content

Commit 0faac56

Browse files
committed
removed unnecessary sample data generation
1 parent eb7e171 commit 0faac56

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

pydra/utils/tests/utils.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from pathlib import Path
2-
import typing as ty
31
from fileformats.generic import File
42
from fileformats.core.mixin import WithSeparateHeader, WithMagicNumber
53
from pydra import mark
@@ -26,28 +24,6 @@ class MyOtherFormatX(WithMagicNumber, WithSeparateHeader, File):
2624
header_type = MyHeader
2725

2826

29-
@File.generate_sample_data.register
30-
def my_format_x_generate_sample_data(
31-
my_format_x: MyFormatX, dest_dir: Path
32-
) -> ty.List[Path]:
33-
fspath = dest_dir / "file.my"
34-
with open(fspath, "wb") as f:
35-
f.write(b"MYFORMAT\nsome data goes here")
36-
header_fspath = dest_dir / "file.hdr"
37-
header_fspath.write_text("a: 1\nb: 2\nc: 3\n")
38-
return [fspath, header_fspath]
39-
40-
41-
@File.generate_sample_data.register
42-
def my_other_format_generate_sample_data(
43-
my_other_format: MyOtherFormatX, dest_dir: Path
44-
) -> ty.List[Path]:
45-
fspath = dest_dir / "file.my"
46-
with open(fspath, "wb") as f:
47-
f.write(b"MYFORMAT\nsome data goes here")
48-
return [fspath]
49-
50-
5127
@mark.task
5228
def generic_func_task(in_file: File) -> File:
5329
return in_file

0 commit comments

Comments
 (0)