You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the data persistence issue (#23), we need to adjust when the hash generation happens. Basically we want the hash as an index, but currently we are generating too late (because the observation construction requires more user input).
Taking this opportunity to clean up the class further:
the hash should be generated externally and passed at construction time (required for setting identifiers to the dynamic UI elements now we have multi-file handling)
it is not clear why we track date, time, date_option and time_option.
not clear why we have both class method and static method for constructing instances (from_data; from_input)
verify that the methods for equality, str, repr, cover all the attributes
remove the hash function, it is not used anywhere and confusing vs. the image hash
type hints
The text was updated successfully, but these errors were encountered:
see issue #27.
- added image_md5 as input (1)
- removed duplicate methods (3)
- removed unused hash func (5)
- checked by inspection the attribute coverage (4) - still to test
see issue #27.
- added typehints (6) for all arguments, except (date, time) which
always seem to be none, and need investigation to resolve (see 2)
- updated the attribute uploaded_filename to uploaded_file, since it
is *not* a filename, but a BytesIO-like object, `UploadedFile`.
As part of the data persistence issue (#23), we need to adjust when the hash generation happens. Basically we want the hash as an index, but currently we are generating too late (because the observation construction requires more user input).
Taking this opportunity to clean up the class further:
The text was updated successfully, but these errors were encountered: