<commit_before>"""
Astra-Viso star camera module.
"""
import numpy as np
from astraviso import worldobject
from astraviso import starmap
from astraviso import imageutils
from astraviso import projectionutils

class StarCam(worldobject.WorldObject):
    """
    Star camera class.
    """

    def __init__(self):
        """
        StarCam initialization.

        Parameters
        ----------
        None

        Returns
        -------
        starcam : StarCam
            Default StarCam object.
        """

        # Internal settings
        self.__settings = {}
        self.__settings["resolution"] = 1024
        self.__settings["max_angle_step"] = 1e-4
        self.__settings["integration_steps"] = 1000

        # Set psf size
        self.setpsf(7, 1) # To be removed...

        # Internal function variables
        self.sensitivity_fcn = None
        self.projection_fcn = None
        self.quantum_efficiency_fcn = None
        self.noise_fcn = None
        self.saturation_fcn = None

        # Set star catalog defaults
        self.star_catalog = starmap.StarMap()
        self.star_catalog.load_preset("random", 1000)

        # Set sensor pointing default
        worldobject.WorldObject.__init__(self)
        self.set_pointing_preset("kinematic", initial_quaternion=np.array([0, 0, 0, 1]),           \
                                                           initial_angular_rate=np.array([0, 0, 0]))

        # Set position model default
        self.set_position_preset("kinematic", initial_position=np.array([0, 0, 0]),                \
                                                               initial_velocity=np.array([0, 0, 0]))<commit_msg>Increased StarCam default catalog size.<commit_after>"""
Astra-Viso star camera module.
"""
import numpy as np
from astraviso import worldobject
from astraviso import starmap
from astraviso import imageutils
from astraviso import projectionutils

class StarCam(worldobject.WorldObject):
    """
    Star camera class.
    """

    def __init__(self):
        """
        StarCam initialization.

        Parameters
        ----------
        None

        Returns
        -------
        starcam : StarCam
            Default StarCam object.
        """

        # Internal settings
        self.__settings = {}
        self.__settings["resolution"] = 1024
        self.__settings["max_angle_step"] = 1e-4
        self.__settings["integration_steps"] = 1000

        # Set psf size
        self.setpsf(7, 1) # To be removed...

        # Internal function variables
        self.sensitivity_fcn = None
        self.projection_fcn = None
        self.quantum_efficiency_fcn = None
        self.noise_fcn = None
        self.saturation_fcn = None

        # Set star catalog defaults
        self.star_catalog = starmap.StarMap()
        self.star_catalog.load_preset("random", 10000)

        # Set sensor pointing default
        worldobject.WorldObject.__init__(self)
        self.set_pointing_preset("kinematic", initial_quaternion=np.array([0, 0, 0, 1]),           \
                                                           initial_angular_rate=np.array([0, 0, 0]))

        # Set position model default
        self.set_position_preset("kinematic", initial_position=np.array([0, 0, 0]),                \
                                                               initial_velocity=np.array([0, 0, 0]))
{'fraction_non_alphanumeric': 0.09637488947833775, 'fraction_numerical': 0.017388741526672562, 'mean_word_length': 1.7819672131147541, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7419940', 'n_tokens_mistral': 953, 'n_tokens_neox': 868, 'n_words': 211}