Skip to content

[pre-commit.ci] auto fixes from pre-commit.com hooks

codefactor.io / CodeFactor failed Dec 20, 2024 in 1s

4 issues fixed. 33 issues found.

Annotations

Check notice on line 1077 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1077

Unresolved comment '# TODO: define here normalized (on ntot and lwc) gamma formula (with Dm or D50)'. (C100)

Check notice on line 208 in disdrodb/l1/resampling.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l1/resampling.py#L98-L208

Complex Method

Check notice on line 1346 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1346

Unresolved comment '# TODO: initialize with moment methods'. (C100)

Check notice on line 69 in disdrodb/scattering/routines.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/scattering/routines.py#L69

Unresolved comment '# TODO: should be another dimension ? Or use scatterer.psd_integrator.m_func?' (C100)

Check notice on line 607 in disdrodb/api/path.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/api/path.py#L607

Unresolved comment '# TODO: this currently only works for L0A and L0B. Should be removed !' (C100)

Check notice on line 134 in disdrodb/routines.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/routines.py#L134

Unresolved comment '# TODO: implement remove_l0b!' (C100)

Check notice on line 654 in disdrodb/l2/processing.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/processing.py#L654

Unresolved comment '# TODO: Add metrics variables or GOF DataArray ?' (C100)

Check notice on line 1161 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1161

Ambiguous variable name 'l'. (E741)

Check notice on line 361 in disdrodb/l2/processing.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/processing.py#L361

Unresolved comment '# TODO: Derive water density as function of ENV (temperature, ...)'. (C100)

Check notice on line 169 in disdrodb/l1/fall_velocity.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l1/fall_velocity.py#L169

Unresolved comment '# TODO: add air_pressure # TODO'. (C100)

Check notice on line 74 in disdrodb/l2/processing_options.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/processing_options.py#L74

Unresolved comment '# TODO: Implement validation !' (C100)

Check notice on line 1067 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1067

Unresolved comment '# TODO: minimize rain rate / reflectivity / lwc ...' (C100)

Check failure on line 28 in disdrodb/utils/cli.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/utils/cli.py#L28

subprocess call with shell=True identified, security issue. (B602)

Check notice on line 1347 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1347

Unresolved comment '# TODO: optimize for rain rate ...' (C100)

Check notice on line 133 in disdrodb/l1/resampling.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l1/resampling.py#L133

Unresolved comment '# TODO: here infill NaN with zero if necessary before regularizing !' (C100)

Check notice on line 31 in disdrodb/l2/empirical_dsd.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/empirical_dsd.py#L31

Unresolved comment '# TODO: provided as variable varying with time?' (C100)

Check notice on line 1066 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1066

Unresolved comment '# TODO: another order to square the D'. (C100)

Check notice on line 3 in disdrodb/l2/processing_options.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/processing_options.py#L3

Unresolved comment '# TODO: Write to YAML'. (C100)

Check notice on line 451 in disdrodb/api/io.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/api/io.py#L381-L451

Complex Method

Check notice on line 488 in disdrodb/l2/processing.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/processing.py#L488

Unresolved comment '# TODO: adapt code to compute from drop_number_concentration'. (C100)

Check notice on line 211 in disdrodb/l0/l0a_processing.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l0/l0a_processing.py#L211

Unresolved comment '# TODO: raise error if duplicated timesteps have different values !' (C100)

Check notice on line 872 in disdrodb/api/path.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/api/path.py#L872

Unresolved comment '# TODO: add sample_interval as argument'. (C100)

Check notice on line 1220 in disdrodb/psd/fitting.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/psd/fitting.py#L1220

Unresolved comment '# TODO: Different formulas !' (C100)

Check notice on line 348 in disdrodb/l2/routines.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/routines.py#L348

Unresolved comment '# TODO: Here pass event option list !' (C100)

Check notice on line 352 in disdrodb/l2/routines.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

disdrodb/l2/routines.py#L352

Unresolved comment '# TODO: Define events identification settings based on accumulation'. (C100)