(self,
session,
member = None,
project: Project = None,
project_id: int = None,
org = None,
raw_file = None,
input_id: int = None,
input: Input = None,
item = None
)
| 127 | """ |
| 128 | |
| 129 | def __init__(self, |
| 130 | session, |
| 131 | member = None, |
| 132 | project: Project = None, |
| 133 | project_id: int = None, |
| 134 | org = None, |
| 135 | raw_file = None, |
| 136 | input_id: int = None, |
| 137 | input: Input = None, |
| 138 | item = None |
| 139 | ): |
| 140 | |
| 141 | # Assign default item since we currently |
| 142 | # define defaults for paremters below in the item class |
| 143 | # input_id is not used from item at this stage |
| 144 | # which is confusing but works for now I guess? |
| 145 | # (but is required on PrioritizedItem construction.) sigh |
| 146 | # This is more of a "hold over from switching / immediate mode") |
| 147 | |
| 148 | if item is None: |
| 149 | item = PrioritizedItem( |
| 150 | priority = 100, |
| 151 | input_id = None) |
| 152 | |
| 153 | self.video_id = item.video_id |
| 154 | self.video_parent_file = item.video_parent_file |
| 155 | self.file_is_numpy_array = item.file_is_numpy_array |
| 156 | self.raw_numpy_image = item.raw_numpy_image |
| 157 | self.frame_number = item.frame_number |
| 158 | self.total_frames = item.total_frames |
| 159 | self.num_frames_to_update = item.num_frames_to_update |
| 160 | self.frame_completion_controller = item.frame_completion_controller |
| 161 | |
| 162 | self.raw_file = raw_file |
| 163 | |
| 164 | self.input = input |
| 165 | self.input_id = input_id |
| 166 | |
| 167 | # file is accessible through self.input.file |
| 168 | |
| 169 | self.session = session |
| 170 | self.sequence_map = {} |
| 171 | self.member = member |
| 172 | self.project = project # This get set from self.input in main_entry() |
| 173 | self.project_id = project_id |
| 174 | self.org = org |
| 175 | |
| 176 | # It creates it's own log for each run... |
| 177 | |
| 178 | self.log = regular_log.default() |
| 179 | # Question, if not running from http do we still follow same log pattern? |
| 180 | # If so we should build log from Regular method |
| 181 | # This also feels confused with the input.status and input.status text |
| 182 | |
| 183 | # TODO get limit from org/project/user etc. |
| 184 | self.directory_file_count_limit = 90000 |
| 185 | |
| 186 | # for directory_id see self.input.directory_id |
nothing calls this directly
no test coverage detected