<commit_before>"""Unit tests for pipelines expressed via dask.delayed


"""
import os
import unittest

import astropy.units as u
import numpy
from astropy.coordinates import SkyCoord

from arl.data.polarisation import PolarisationFrame
from arl.fourier_transforms.ftprocessor import invert_timeslice_single
from arl.image.operations import export_image_to_fits
from arl.util.testing_support import create_named_configuration, create_test_image
from arl.visibility.operations import create_blockvisibility
from dask import delayed
from arl.graphs.dask_graphs import create_continuum_imaging_pipeline_graph, create_invert_graph, create_predict_graph, \
    create_ical_pipeline_graph
from graphs.dask_init import get_dask_Client


class TestPipelinesDask(unittest.TestCase):
    def setUp(self):
        self.dir = './test_results'
        os.makedirs(self.dir, exist_ok=True)
        self.lowcore = create_named_configuration('LOWBD2-CORE')<commit_msg>Misstated import for dask<commit_after>"""Unit tests for pipelines expressed via dask.delayed


"""
import os
import unittest

import astropy.units as u
import numpy
from astropy.coordinates import SkyCoord

from arl.data.polarisation import PolarisationFrame
from arl.fourier_transforms.ftprocessor import invert_timeslice_single
from arl.image.operations import export_image_to_fits
from arl.util.testing_support import create_named_configuration, create_test_image
from arl.visibility.operations import create_blockvisibility
from dask import delayed
from arl.graphs.dask_graphs import create_continuum_imaging_pipeline_graph, create_invert_graph, create_predict_graph, \
    create_ical_pipeline_graph
from arl.graphs.dask_init import get_dask_Client


class TestPipelinesDask(unittest.TestCase):
    def setUp(self):
        self.dir = './test_results'
        os.makedirs(self.dir, exist_ok=True)
        self.lowcore = create_named_configuration('LOWBD2-CORE')
{'fraction_non_alphanumeric': 0.058915537017726796, 'fraction_numerical': 0.0010427528675703858, 'mean_word_length': 6.081180811808118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4200773', 'n_tokens_mistral': 590, 'n_tokens_neox': 565, 'n_words': 136}