Spaces:
Build error
Build error
Commit History
-
chore: remove unused and debug code
rmm14b60f7 -
fix: implemented state for persistent date/time data entry
rmmfc21199 -
fix: test_two_input_files_realdata passing
rmm- note: asymmetry between lat/lon vs date/time; the latter pair need their values going via the cache too2e11215 -
feat: inputs frozen after validation clicked
rmm8609001 -
fix: lat/lon values persist over page switches
rmm- this also copes with edits made if the original value came from file metadata, so the user can correct it (previously it would re-read the metadata and changes would be lost)6d20197
-
fix: observations now persist across page switches
rmmrepair of problem 1 in the PR initial description.2c18274
-
feat: content split to page and gallery maps good to go
2f87aad
-
Merge pull request #40 from sdsc-ordes/fix/timezones
Unverified signatureFix/timezonesfe38b4f
-
fix: use string form of timezone not tzinfo object
rmm9c92b35 -
fix: added timezone to InputObservation, updated tests
rmm2514067 -
fix: timezone from file metadata, or from locale if absent
rmm0cc6a8a
-
fix: email field must be populated to pass validation
rmm- resolves #37 - in this state, causes test_main to fail, as expected21762f6 -
test: updated to test behaviour according to debug flag state
rmmc09e385 -
fix: env variable defines whether fields autopopulated
rmm- for the CI tests, the env variable is set too, so the tests pass - next step requires tests updated to cope (visual tests can fill the fields to simulate the user)b008f47
-
docs: mkdocs needs modules (adding __init__.py)
rmm1905de6
-
chore: added custom marker to slow (>20s) test, updated CI to skip
rmm- on PR we run all tests, including the slow one(s) - on push we just do the faster ones - registered marks in pytest.inif10ce15
-
fix: all usage of session_state.files explicitly a list now
rmm- init was to a dict, then overwritten by a list, - all access was treating as a list838bba4 -
test: new test for input validation, and fix typo in args
rmm8a40c2d -
chore: adding a property and tidy up fstring warnings
rmm- f-string without any args shouldn't have the f.8e89085
-
chore: moved all session state init to relevant modules
rmm19b7ec2 -
fix: typehints compatible with py3.9
rmm9e88b3e -
doc: added docstrings to new functions
rmmf87663a -
chore: cleanup variable names and add docstrings
rmm06a0df9 -
chore: moved debug function to relevant module, and docstring
rmm774a646
-
test: updated test to match interface; solved other xfail tests
rmm7dee860 -
feat: extended InputObservation to contain species/prediction info
rmm- when manual validation is performed (dropdown selection among species), it is written to the observations (And not the dynamically-created dicts). - TODO: decide if we need to retain public_observations in session_state, or just generate the dict each time it is needed.71dfd99 -
chore: tidy up of workflow and debug clutter
rmm- basically all phases seem ok, almost ready for validation8c4b1f7 -
fix: InputObservation uses date, time, and raw_image_datetime
rmm- no more "options", too ambiguous. The goal of this implementation is to have one date and one time for the observation, which could have been corrected manually. - see beca8fa where I did the first updateaa998c4 -
fix: instantiating InputObservation with new call signature
rmm(see beca8fa)bb4e7ad -
fix: removed time from InputObservation, renamed date for clarity
rmm- still some ambiguity with the names "date_option" and "time_option" but the present change is more involved, while renaming those two can happen after if validc45e52f -
feat: get coordinates from file, populate input boxes
rmm- resolves #19da246ad
-
chore: reorganise code out of main
rmm75fcfd6 -
chore: reorganise code out of main, and docstrings in input_handling
rmmba6e051 -
chore: cleanup input_handling - removing unused functions
rmm- also stopped passing the viewcontainer arg to setup_input, since it uses the `with st.sidebar` context, which is simpler.cd85869 -
chore: cleaning up InputObservation (added type hints)
rmmsee 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`.8f958ed -
feat: InputObservations are compared and only updated if new
rmm- hash is passed to Observation constructor5cb2d26 -
fix: InputObservation comparison ok for images, and skipping time
rmm- the timestamp is taken from the clock at the moment, infeasible to be the same so would always update (overwrite) all observations on reruns. - also added a difference highlighter method for inspection80c0010 -
chore: cleaning up InputObservation
rmmsee 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 test5016509 -
feat: separated file input and metadata input functions
rmm- can't generate widgets within callbacks, they are not stable - flow instead is: 1. normal flow: add file_uploader with callback 2. buffer files in the callback (st.session_state) 3. normal flow: add UI elements to get metadata, for each file in buffer1bbd515
-
fix: checking input requires testing for empty strings/lists
rmm- testing for the presence of the key in session_state is no longer sufficient with current implementation (we explicitly set the keys so we can handle >1 file)9bd26ee -
feat: nearly complete input handling with stable state
rmm- main bug was that every interaction with the UI led to the file_uploader being re-instantiated, and then all the inputs got re-parsed, the hashes recalculated, and the data lost. - solution is via callback, and using the session state to implicitly store the file_uploader return value (not well documented) - on change of the file_uploader state, we dynamically generate the input elements to supply the metadata. And process them inline. - TODO: the data is stable in the session_state, but the UI loses the elements for the list -- because the list hasn't changed! the callback doesn't get triggered. - Good: we don't overwrite our loaded data, and the ML/presentation can continue, but... - Bad: we don't redraw the elements. -> more caching I suppose.895e8d8
-
feat: implementation of FSM, and invokation for first phases
rmm- fsm implementation uses the `transitions` package. - added unique keys to the input forms, so can check when all are filled - included a basic viz/feedback on the statebd8db44
-
Merge remote-tracking branch 'origin/dev' into feat/stateful-workflow
rmm8047e97 -
feat: added member var for top predictions in the observation class
rmmba36d57 -
feat: hash used as identifier
5a8836e
-
feat: merge dev and into image batch
8cbe888
-
feat: refactor and multi image classification
55d18b1