Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary encoding lines * Change variable names to improve PEP 8 compatibility * Use 4 spaces in docstring indentations * Implement a common utility function for computing the S-PROG mask * Fix incorrect imports * Use f-strings instead of old-style printing * Implement utility method for computing nowcasts with non-integer time steps * Use state model for the nowcast loop function * Fix typos * Replace R_thr keyword argument with precip_thr * Remove extra index increment leading to possible IndexError * Use np.abs instead of abs * Minor docstring revisions * Fix typo * Implement supplying additional parameters to the state functions * Argument refactoring * Fix incorrect indices * Implement S-PROG by using utils.nowcast_main_loop * Add comment lines * Fix measurement of main loop time * Use PEP 8-compatible variable names * Remove unnecessary code lines * Use PEP 8-compatible variable names * Use PEP 8-compatible variable names in _ckeck_inputs * Move worker definition outside the nowcast loop * Supply parameters directly instead of dictionary * Use lowercase variable name for phi * Remove unnecessary code lines * Simplify code * Use a single update/forecast function for the nowcast loop * Use state and params dictionaries with the update method * First version of nowcast_main_loop with support for ensembles and velocity perturbations * Multiple fixes * Use dask for parallelization * Remove unnecessary encoding line * Use more descriptive variable name for rain rate * Refactored version of ANVILthat uses utils.nowcast_main_loop * Use proper check for deterministic/ensemble nowcast * Add return_output option to nowcast_main_loop * Docstring polishing * Implement support for callback functions in nowcast_main_loop * Docstring update * Bug fixes * Fix incorrect order of code lines * Fix incorrect initialization of starttime * Refactored STEPS module using utils.nowcast_main_loop * Remove unnecessary encoding line * Add checks for ensemble size and number of workers * Revise variable names to be compatible with the other nowcasting methods * Ensure that return_displacement is set to True * Remove unnecessary lines * First version of refactored LINDA using utils.nowcast_main_loop * Update docstring of the callback option * Implement callback and return_output options * Change order of input arguments * Fix parallelization bug * Add ensemble size check * Change num_ens_members to n_ens_members for compatibility with steps * Add test for callback function * Update black to newest version * Run black * Fix possible division by zero * Set allow_nonfinite_values automatically based on the input data * Replace None default argument with dict * Fix typo * Fix typo * Use float mask as in steps * Implement common utility method for incremental mask * Explicitly check that precip_thr is given * Explicitly check that precip_thr is specified when it is required * Remove redundant code * Use different name to avoid redefining built-in 'filter' * Remove unused variable * Replace filter with bp_filter * Use None default argument value instead of dict() * Change worker function names to avoid redefinition * Fix typo Co-authored-by: Ruben Imhoff <31476760+RubenImhoff@users.noreply.github.com> * Increase test coverage for anvil * Remove unnecessary encoding line * Improve variable naming in stack_cascades * Replace R with precip * Use consistent variable naming for forecasts * Run black * Remove unnecessary loop indices * Minor refactoring of printing functions * Use more descriptive variable name for velocity perturbators * Minor refactoring of seed generation * Use lowercase variable names for masks * Remove TODO comment * Use more decriptive variable names * Use lowercase variable names for gamma and psi * Use longer variable name for velocity perturbation generator * Replace precip_c and precip_d with more descriptive names * Replace precip_cascade with precip_cascades * Remove extra underscore from vp_ * Use longer names for lambda functions * Replace P with pert_gen * Replace pp with pert_gen * List all methods in the autosummary * Docstring addition * Fix incorrect initialization of precip_forecast_prev * Explicitly require nowcast type and ensemble size in nowcast_main_loop * First version of tests for nowcasts.utils * Add docstring * Remove unused metadata * Add future warnings for new argument names; support old names till 1.8.0 * Remoe generic filter for warnings * Pin micromamba to 0.24 since 0.25 fails with windows Co-authored-by: Daniele Nerini <daniele.nerini@gmail.com> Co-authored-by: Ruben Imhoff <31476760+RubenImhoff@users.noreply.github.com> Co-authored-by: ned <daniele.nerini@meteoswiss.ch>
- Loading branch information