MarkWengSTR/ansys-maxwell-EM-design-online

Why call functions using "and"

Closed this issue · 1 comments

hh-wu commented
 total_params_calculate(ctx) and \
        find_or_initial_project(ctx) and \
        save_project(ctx) and \
        params_setting(ctx) and \
        material_setting(ctx) and \
        stator_model(ctx) and \
        rotor_model(ctx) and \
        magnets_model(ctx) and \
        coils_model(ctx) and \
        export_model_picture(ctx) and \
        current_excitation_setting(ctx) and \
        model_setting(ctx) and \
        band_model(ctx) and \
        mesh_setting(ctx) and \
        analysis_setting(ctx) and \
        optimetrics_setting(ctx) and \
        report_setting(ctx) and \
        start_analysis(ctx) and \
        report_export(ctx) and \
        save_project(ctx) and \
        close_project(ctx) and \
        result_process(ctx)

code style is weird

It's function pipeline, I want to simulate pipeline like clojure "->>", data dictionary transform in each function like production line.
It's has many advantage like just read the function, you can know the steps of process, and it's easily to debug by just check the ctx is correct or not in anywhere.