hydro.tests.test_accessors ========================== .. py:module:: hydro.tests.test_accessors Attributes ---------- .. autoapisummary:: hydro.tests.test_accessors.exp_stn_cast Functions --------- .. autoapisummary:: hydro.tests.test_accessors.test_gen_fname_machinery hydro.tests.test_accessors.test_coards_no_comments hydro.tests.test_accessors.test_exchange_bottle_round_trip hydro.tests.test_accessors.test_exchange_bottle_round_trip_with_alt hydro.tests.test_accessors.test_exchange_bottle_round_trip_cdom hydro.tests.test_accessors.test_exchange_ctd_round_trip hydro.tests.test_accessors.test_nc_serialize_all_ctd hydro.tests.test_accessors.test_nc_serialize_all_ctdetime hydro.tests.test_accessors.test_woce_ctd_no_flags hydro.tests.test_accessors.test_coards_ctdnobs_with_missing hydro.tests.test_accessors.test_coards_bottle_flag_9 hydro.tests.test_accessors.test_nc_serialize_all_ctdetime_multiple_profs hydro.tests.test_accessors.test_ctdetime_preserve_precision hydro.tests.test_accessors.test_coards_with_param_containing_slash Module Contents --------------- .. py:data:: exp_stn_cast .. py:function:: test_gen_fname_machinery(expocode, station, cast, profile_type, profile_count, ftype) .. py:function:: test_coards_no_comments() .. py:function:: test_exchange_bottle_round_trip() .. py:function:: test_exchange_bottle_round_trip_with_alt() .. py:function:: test_exchange_bottle_round_trip_cdom() .. py:function:: test_exchange_ctd_round_trip() .. py:function:: test_nc_serialize_all_ctd(tmp_path) A crash was discovered when the ctd elapsed time param was present, and was seralized to disk then read back in .. py:function:: test_nc_serialize_all_ctdetime(tmp_path) A crash was discovered when the ctd elapsed time param was present, and was seralized to disk then read back in .. py:function:: test_woce_ctd_no_flags(tmp_path) make sure data is written to the woce files when there are no qc flags .. py:function:: test_coards_ctdnobs_with_missing() Test a condition where exception might be thrown when a float array with nans is cast to int This is very platform dependent and depends on undefined behavior in C. Lucky for us we can see if numpy is issuing a runtime warning (they are considering makeing this throw in the future anyway) .. py:function:: test_coards_bottle_flag_9() Test a condition where a warning might be thrown when a bottle has flag 9 .. py:function:: test_nc_serialize_all_ctdetime_multiple_profs(tmp_path) Test file with CTDETIME and differing profile lengths The exchange writer would crash with a zip strict error, this is solved by setting decode_timedelta to False when the file is read in .. py:function:: test_ctdetime_preserve_precision(tmp_path) Test file with CTDETIME and differing profile lengths The exchange writer would crash with a zip strict error, this is solved by setting decode_timedelta to False when the file is read in .. py:function:: test_coards_with_param_containing_slash() Test that the COARDS conversion can deal with a parameter with a / in the name