Example #1
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)

        self.g_data.centered = True
        self.g_data.r_scale = 1.

        self.g_data.data = {

            # Have two particles inside and one outside the region.
            'P':
            np.array([
                [
                    0.,
                    2.,
                    0.5,
                    0.,
                ],
                [
                    0.5,
                    0.,
                    0.,
                    0.,
                ],
                [
                    0.,
                    0.5,
                    0.5,
                    0.,
                ],
            ])
        }
Example #2
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)

        self.g_data.data_attrs = {
            'hubble': 0.70199999999999996,
            'redshift': 0.16946,
        }
Example #3
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)

        self.g_data.data_attrs = {
            'hubble': 0.70199999999999996,
            'omega_matter': 0.272,
            'omega_lambda': 0.728,
            'redshift': 0.16946,
        }
Example #4
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)

        self.g_data.data_attrs = {
            'hubble': 0.70199999999999996,
            'redshift': 0.16946,
        }

        # Setup some necessary data
        self.g_data.data = {
            'V': np.random.rand(3, 4),
        }
Example #5
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)

        self.g_data.data_attrs = {
            'hubble': 0.70199999999999996,
            'omega_matter': 0.272,
            'omega_lambda': 0.728,
            'redshift': 0.16946,
        }

        # Setup some necessary data
        self.g_data.data = {
            'P': np.random.rand(3, 4),
            'V': np.random.rand(3, 4),
            'Den': np.random.rand(4),
            'Z': np.random.uniform(0., 1.),
        }
Example #6
0
    def setUp(self):

        self.g_data = simulation_data.SnapshotData(**default_kwargs)