LightWin 0.9.1rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightwin-0.9.1rc2/.github/workflows/release.yml +109 -0
- lightwin-0.9.1rc2/.github/workflows/test.yml +35 -0
- lightwin-0.9.1rc2/.github/workflows/update_citation.yml +56 -0
- lightwin-0.9.1rc2/.gitignore +196 -0
- lightwin-0.9.1rc2/.pre-commit-config.yaml +42 -0
- lightwin-0.9.1rc2/.readthedocs.yaml +21 -0
- lightwin-0.9.1rc2/.taplo.toml +4 -0
- lightwin-0.9.1rc2/CHANGELOG.md +342 -0
- lightwin-0.9.1rc2/CITATION.cff +27 -0
- lightwin-0.9.1rc2/LICENSE +21 -0
- lightwin-0.9.1rc2/Makefile +8 -0
- lightwin-0.9.1rc2/PKG-INFO +89 -0
- lightwin-0.9.1rc2/README.md +52 -0
- lightwin-0.9.1rc2/data/example/constraints.csv +143 -0
- lightwin-0.9.1rc2/data/example/example.dat +715 -0
- lightwin-0.9.1rc2/data/example/example.ini +0 -0
- lightwin-0.9.1rc2/data/example/field_maps_1D/Double_spoke.edz +258 -0
- lightwin-0.9.1rc2/data/example/field_maps_1D/Simple_Spoke_1D.edz +210 -0
- lightwin-0.9.1rc2/data/example/field_maps_1D/beta065_1D.edz +528 -0
- lightwin-0.9.1rc2/data/example/generate_design_space_files.py +91 -0
- lightwin-0.9.1rc2/data/example/lightwin.toml +142 -0
- lightwin-0.9.1rc2/data/example/machine_config.toml +13 -0
- lightwin-0.9.1rc2/data/example/my_own_objectives.py +197 -0
- lightwin-0.9.1rc2/data/example/optimization_history/.keep +0 -0
- lightwin-0.9.1rc2/data/example/run_lightwin.py +83 -0
- lightwin-0.9.1rc2/data/example/variables.csv +143 -0
- lightwin-0.9.1rc2/data/example/variables_centered_around_solution.csv +4 -0
- lightwin-0.9.1rc2/data/test_instructions/debug.py +76 -0
- lightwin-0.9.1rc2/docs/Makefile +61 -0
- lightwin-0.9.1rc2/docs/_ext/lightwin_sphinx_extensions.py +33 -0
- lightwin-0.9.1rc2/docs/_templates/layout.html +13 -0
- lightwin-0.9.1rc2/docs/_templates/versions.html +27 -0
- lightwin-0.9.1rc2/docs/conf.py +153 -0
- lightwin-0.9.1rc2/docs/index.rst +36 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.beam_calculator.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.beam_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.electromagnetic_fields.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.element_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.element_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.envelope_1d.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.rst +24 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.simulation_output_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.transfer_matrices.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.transfer_matrix_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.cy_envelope_1d.util.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.beam_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.element_envelope1d_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.element_envelope1d_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.envelope_1d.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.rst +23 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.simulation_output_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.transfer_matrices.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.transfer_matrix_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_1d.util.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.beam_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.element_envelope3d_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.element_envelope3d_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.envelope_3d.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.rst +23 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.simulation_output_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.transfer_matrices_p.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.transfer_matrix_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.envelope_3d.util.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.integrators.rk4.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.integrators.rst +15 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.parameters.element_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.parameters.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.parameters.rst +16 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.rst +31 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.simulation_output.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.simulation_output.rst +16 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.simulation_output.simulation_output.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.beam_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.element_tracewin_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.element_tracewin_parameters_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.machine_config_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.rst +22 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.simulation_output_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.tracewin.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.beam_calculation.tracewin.transfer_matrix_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.config_manager.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.full_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.key_val_conf_spec.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.rst +20 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.table_spec.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config.toml_formatter.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.config_manager.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.constants.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.accelerator.accelerator.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.accelerator.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.accelerator.rst +16 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.beam_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.initial_beam_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.phase_space.i_phase_space_beam_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.phase_space.initial_phase_space_beam_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.phase_space.phase_space_beam_parameters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.phase_space.rst +17 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_parameters.rst +26 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.beam_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.adjust.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.chopper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.command.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.dummy_command.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.end.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.error.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.field_map_path.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.freq.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.lattice.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.marker.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.repeat_ele.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.rst +32 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.set_adv.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.set_sync_phase.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.shift.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.steerer.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.commands.superpose_map.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.aperture.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.bend.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.diagnostic.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.drift.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.dummy.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.edge.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.element.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.cavity_settings.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.cavity_settings_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.field_map.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.field_map_100.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.field_map_1100.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.field_map_70.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.field_map_7700.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.rst +24 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.superposed_field_map.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.field_maps.util.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.quad.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.rst +35 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.solenoid.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.superposed_field_map.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.elements.thin_steering.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.field.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.field100.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.field70.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.field_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.field_helpers.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.longitudinal.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.rf_field.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.rst +24 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.superposed_fields.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.em_fields.types.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.files_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.instruction.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.instructions_factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.list_of_elements.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.list_of_elements.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.list_of_elements.list_of_elements.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.list_of_elements.rst +17 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.particle.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.rst +33 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.transfer_matrix.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.transfer_matrix.rst +16 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.core.transfer_matrix.transfer_matrix.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.list_of_simulation_output_evaluators.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.post_treaters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.rst +27 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.simulation_output.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.simulation_output.presets.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.simulation_output.rst +17 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.simulation_output.simulation_output_evaluator.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.testers.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.evaluator.types.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.fault.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.fault_scenario.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.rst +19 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.set_of_cavity_settings.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.failures.strategy.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.algorithm.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.differential_evolution.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.downhill_simplex.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.downhill_simplex_penalty.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.explorator.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.least_squares.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.least_squares_penalty.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.nsga.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.pso.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.algorithms.rst +24 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.constraint.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.design_space.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.design_space_parameter.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.rst +20 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space.variable.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.design_space_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.factory.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.minimize_difference_with_ref.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.minimize_mismatch.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.objective.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.position.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.quantity_is_between.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.objective.rst +21 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.rst +26 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.optimisation.wtf_specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.rst +34 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.combine_solutions.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.compare_beam_calculators.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.compare_runs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.compute_lost_power_per_meter.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.generate_design_space_files.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.optimization_history.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.reorder_output_figures.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.rst +23 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.save_cavity_settings.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.scripts.scripts_shorthands.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.dat_files.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.electromagnetic_fields.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.field_map_loaders.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.interface.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.line.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.load.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.tracewin_utils.rst +20 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.ui.rst +15 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.ui.workflow_setup.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.converters.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.debug.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.dicts_output.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.log_manager.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.pandas_helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.pass_beauty.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.phases.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.pickling.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.rst +24 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.util.synchronous_phases.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.anim.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.ellipse.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.helper.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.optimization.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.plot.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.rst +21 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.specs.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/lightwin.visualization.structure.rst +7 -0
- lightwin-0.9.1rc2/docs/lightwin/modules.rst +7 -0
- lightwin-0.9.1rc2/docs/make.bat +35 -0
- lightwin-0.9.1rc2/docs/manual/bibliography.rst +5 -0
- lightwin-0.9.1rc2/docs/manual/configuration.beam.rst +29 -0
- lightwin-0.9.1rc2/docs/manual/configuration.beam_calculator.rst +35 -0
- lightwin-0.9.1rc2/docs/manual/configuration.evaluators.rst +16 -0
- lightwin-0.9.1rc2/docs/manual/configuration.files.rst +15 -0
- lightwin-0.9.1rc2/docs/manual/configuration.optimisation.design_space.rst +27 -0
- lightwin-0.9.1rc2/docs/manual/configuration.plots.rst +15 -0
- lightwin-0.9.1rc2/docs/manual/configuration.rst +58 -0
- lightwin-0.9.1rc2/docs/manual/configuration.wtf.rst +43 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/beam.csv +7 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/beam_calculator_envelope_1d.csv +7 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/beam_calculator_envelope_3d.csv +7 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/beam_calculator_tracewin.csv +86 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/design_space_calculated.csv +9 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/design_space_from_file.csv +5 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/evaluator.csv +3 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/files.csv +6 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/plots.csv +9 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/wtf_k_out_of_n.csv +11 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/wtf_l_neighboring_lattices.csv +12 -0
- lightwin-0.9.1rc2/docs/manual/configuration_entries/wtf_manual.csv +10 -0
- lightwin-0.9.1rc2/docs/manual/examples.rst +9 -0
- lightwin-0.9.1rc2/docs/manual/get_method.rst +12 -0
- lightwin-0.9.1rc2/docs/manual/installation.cython.rst +80 -0
- lightwin-0.9.1rc2/docs/manual/installation.download.rst +22 -0
- lightwin-0.9.1rc2/docs/manual/installation.python.rst +109 -0
- lightwin-0.9.1rc2/docs/manual/installation.rst +12 -0
- lightwin-0.9.1rc2/docs/manual/installation.testing.rst +36 -0
- lightwin-0.9.1rc2/docs/manual/installation.tracewin.rst +54 -0
- lightwin-0.9.1rc2/docs/manual/installation.troubleshooting.rst +17 -0
- lightwin-0.9.1rc2/docs/manual/notebooks/absolute_vs_relative_phases.ipynb +649 -0
- lightwin-0.9.1rc2/docs/manual/scripts.rst +85 -0
- lightwin-0.9.1rc2/docs/manual/troubles/module_not_found.rst +8 -0
- lightwin-0.9.1rc2/docs/manual/troubles/windows_c_compiler.rst +16 -0
- lightwin-0.9.1rc2/docs/manual/units/emittances.csv +6 -0
- lightwin-0.9.1rc2/docs/manual/units/envelopes.csv +11 -0
- lightwin-0.9.1rc2/docs/manual/units/twiss.csv +10 -0
- lightwin-0.9.1rc2/docs/manual/units.rst +63 -0
- lightwin-0.9.1rc2/docs/manual/usage.breaking_and_fixing.rst +11 -0
- lightwin-0.9.1rc2/docs/manual/usage.compatibility_with_tracewin.rst +39 -0
- lightwin-0.9.1rc2/docs/manual/usage.general_structure.rst +16 -0
- lightwin-0.9.1rc2/docs/manual/usage.rst +12 -0
- lightwin-0.9.1rc2/docs/references.bib +24 -0
- lightwin-0.9.1rc2/docs/requirements.txt +2 -0
- lightwin-0.9.1rc2/docs/scripts/generate_config_csv.py +83 -0
- lightwin-0.9.1rc2/pyproject.toml +96 -0
- lightwin-0.9.1rc2/setup.cfg +4 -0
- lightwin-0.9.1rc2/setup.py +109 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/PKG-INFO +89 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/SOURCES.txt +600 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/dependency_links.txt +1 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/entry_points.txt +4 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/requires.txt +18 -0
- lightwin-0.9.1rc2/src/LightWin.egg-info/top_level.txt +1 -0
- lightwin-0.9.1rc2/src/lightwin/__init__.py +5 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/__init__.py +14 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/beam_calculator.py +322 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/__init__.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/beam_parameters_factory.py +11 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/electromagnetic_fields.py +37 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/element_parameters.py +194 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/element_parameters_factory.py +64 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/envelope_1d.py +73 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/simulation_output_factory.py +29 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/specs.py +9 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/transfer_matrices.c +36477 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/transfer_matrices.pyx +462 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/transfer_matrix_factory.py +9 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/cy_envelope_1d/util.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/__init__.py +7 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/beam_parameters_factory.py +60 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/element_envelope1d_parameters.py +602 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/element_envelope1d_parameters_factory.py +153 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/envelope_1d.py +301 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/simulation_output_factory.py +138 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/specs.py +71 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/transfer_matrices.py +658 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/transfer_matrix_factory.py +58 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_1d/util.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/__init__.py +5 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/beam_parameters_factory.py +64 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/element_envelope3d_parameters.py +400 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/element_envelope3d_parameters_factory.py +140 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/envelope_3d.py +271 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/simulation_output_factory.py +136 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/specs.py +76 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/transfer_matrices_p.py +433 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/transfer_matrix_factory.py +62 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/envelope_3d/util.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/factory.py +165 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/integrators/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/integrators/rk4.py +46 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/parameters/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/parameters/element_parameters.py +60 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/parameters/factory.py +22 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/simulation_output/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/simulation_output/factory.py +141 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/simulation_output/simulation_output.py +360 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/specs.py +25 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/__init__.py +7 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/beam_parameters_factory.py +162 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/element_tracewin_parameters.py +74 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/element_tracewin_parameters_factory.py +47 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/machine_config_specs.py +48 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/simulation_output_factory.py +489 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/specs.py +779 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/tracewin.py +448 -0
- lightwin-0.9.1rc2/src/lightwin/beam_calculation/tracewin/transfer_matrix_factory.py +91 -0
- lightwin-0.9.1rc2/src/lightwin/config/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/config/config_manager.py +263 -0
- lightwin-0.9.1rc2/src/lightwin/config/full_specs.py +287 -0
- lightwin-0.9.1rc2/src/lightwin/config/helper.py +117 -0
- lightwin-0.9.1rc2/src/lightwin/config/key_val_conf_spec.py +207 -0
- lightwin-0.9.1rc2/src/lightwin/config/table_spec.py +346 -0
- lightwin-0.9.1rc2/src/lightwin/config/toml_formatter.py +80 -0
- lightwin-0.9.1rc2/src/lightwin/config_manager.py +263 -0
- lightwin-0.9.1rc2/src/lightwin/constants.py +28 -0
- lightwin-0.9.1rc2/src/lightwin/core/__init__.py +7 -0
- lightwin-0.9.1rc2/src/lightwin/core/accelerator/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/core/accelerator/accelerator.py +258 -0
- lightwin-0.9.1rc2/src/lightwin/core/accelerator/factory.py +311 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/__init__.py +9 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/beam_parameters.py +407 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/factory.py +520 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/helper.py +548 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/initial_beam_parameters.py +271 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/phase_space/__init__.py +13 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/phase_space/i_phase_space_beam_parameters.py +229 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/phase_space/initial_phase_space_beam_parameters.py +156 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_parameters/phase_space/phase_space_beam_parameters.py +275 -0
- lightwin-0.9.1rc2/src/lightwin/core/beam_specs.py +168 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/adjust.py +80 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/chopper.py +40 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/command.py +117 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/dummy_command.py +47 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/end.py +30 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/error.py +95 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/factory.py +115 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/field_map_path.py +71 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/freq.py +61 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/helper.py +22 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/lattice.py +163 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/marker.py +51 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/repeat_ele.py +81 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/set_adv.py +18 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/set_sync_phase.py +80 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/shift.py +34 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/steerer.py +41 -0
- lightwin-0.9.1rc2/src/lightwin/core/commands/superpose_map.py +230 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/aperture.py +22 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/bend.py +66 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/diagnostic.py +276 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/drift.py +20 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/dummy.py +20 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/edge.py +44 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/element.py +193 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/factory.py +139 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/__init__.py +5 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/cavity_settings.py +949 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/cavity_settings_factory.py +90 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/factory.py +109 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/field_map.py +309 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/field_map_100.py +16 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/field_map_1100.py +58 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/field_map_70.py +29 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/field_map_7700.py +23 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/superposed_field_map.py +227 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/field_maps/util.py +17 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/helper.py +118 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/quad.py +21 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/solenoid.py +20 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/superposed_field_map.py +0 -0
- lightwin-0.9.1rc2/src/lightwin/core/elements/thin_steering.py +22 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/field.py +307 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/field100.py +90 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/field70.py +45 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/field_factory.py +127 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/field_helpers.py +105 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/helper.py +107 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/longitudinal.py +0 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/rf_field.py +121 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/superposed_fields.py +43 -0
- lightwin-0.9.1rc2/src/lightwin/core/em_fields/types.py +16 -0
- lightwin-0.9.1rc2/src/lightwin/core/files_specs.py +128 -0
- lightwin-0.9.1rc2/src/lightwin/core/instruction.py +219 -0
- lightwin-0.9.1rc2/src/lightwin/core/instructions_factory.py +270 -0
- lightwin-0.9.1rc2/src/lightwin/core/list_of_elements/__init__.py +7 -0
- lightwin-0.9.1rc2/src/lightwin/core/list_of_elements/factory.py +396 -0
- lightwin-0.9.1rc2/src/lightwin/core/list_of_elements/helper.py +406 -0
- lightwin-0.9.1rc2/src/lightwin/core/list_of_elements/list_of_elements.py +411 -0
- lightwin-0.9.1rc2/src/lightwin/core/particle.py +151 -0
- lightwin-0.9.1rc2/src/lightwin/core/transfer_matrix/__init__.py +0 -0
- lightwin-0.9.1rc2/src/lightwin/core/transfer_matrix/factory.py +50 -0
- lightwin-0.9.1rc2/src/lightwin/core/transfer_matrix/transfer_matrix.py +326 -0
- lightwin-0.9.1rc2/src/lightwin/data/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/ads.dat +715 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/ads.ini +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/constraints.csv +143 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/field_maps_1D/Double_spoke.edz +258 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/field_maps_1D/Simple_Spoke_1D.edz +210 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/field_maps_1D/beta065_1D.edz +528 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/lightwin.toml +142 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/lw_results/.keep +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/machine_config.toml +13 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/tw_results/.keep +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/variables.csv +143 -0
- lightwin-0.9.1rc2/src/lightwin/data/ads/variables_centered_around_solution.csv +4 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/__init__.py +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/bigger_repeat_ele.dat +14 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/generic_project.ini +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/lw_results/.keep +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/repeat_ele.dat +6 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/repeat_ele.ini +0 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/set_sync_phase.dat +20 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/superpose_map.dat +20 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/test_instructions.toml +30 -0
- lightwin-0.9.1rc2/src/lightwin/data/instructions_test/tw_results/.keep +0 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/list_of_simulation_output_evaluators.py +280 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/post_treaters.py +172 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/simulation_output/__init__.py +9 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/simulation_output/factory.py +62 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/simulation_output/presets.py +265 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/simulation_output/simulation_output_evaluator.py +435 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/specs.py +33 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/testers.py +47 -0
- lightwin-0.9.1rc2/src/lightwin/evaluator/types.py +11 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/i_evaluator.py +109 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/simulation_output/__init__.py +0 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/simulation_output/factory.py +199 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/simulation_output/i_simulation_output_evaluator.py +212 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/new_evaluator/simulation_output/presets.py +461 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/plotter/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/plotter/i_plotter.py +187 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/plotter/matplotlib_helper.py +233 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/plotter/matplotlib_plotter.py +108 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/plotter/pd_plotter.py +53 -0
- lightwin-0.9.1rc2/src/lightwin/experimental/test.py +96 -0
- lightwin-0.9.1rc2/src/lightwin/failures/__init__.py +4 -0
- lightwin-0.9.1rc2/src/lightwin/failures/fault.py +254 -0
- lightwin-0.9.1rc2/src/lightwin/failures/fault_scenario.py +555 -0
- lightwin-0.9.1rc2/src/lightwin/failures/helper.py +235 -0
- lightwin-0.9.1rc2/src/lightwin/failures/set_of_cavity_settings.py +195 -0
- lightwin-0.9.1rc2/src/lightwin/failures/strategy.py +305 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/__init__.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/algorithm.py +491 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/differential_evolution.py +45 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/downhill_simplex.py +83 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/downhill_simplex_penalty.py +74 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/explorator.py +171 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/factory.py +170 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/least_squares.py +61 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/least_squares_penalty.py +59 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/algorithms/nsga.py +227 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/__init__.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/constraint.py +71 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/design_space.py +381 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/design_space_parameter.py +157 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/factory.py +425 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/helper.py +150 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space/variable.py +93 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/design_space_specs.py +110 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/factory.py +623 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/helper.py +24 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/minimize_difference_with_ref.py +104 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/minimize_mismatch.py +89 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/objective.py +70 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/position.py +223 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/objective/quantity_is_between.py +90 -0
- lightwin-0.9.1rc2/src/lightwin/optimisation/wtf_specs.py +168 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/__init__.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/combine_solutions.py +342 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/compare_beam_calculators.py +119 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/compare_runs.py +96 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/compute_lost_power_per_meter.py +417 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/generate_design_space_files.py +74 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/optimization_history.py +169 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/reorder_output_figures.py +83 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/save_cavity_settings.py +73 -0
- lightwin-0.9.1rc2/src/lightwin/scripts/scripts_shorthands.py +54 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/__init__.py +6 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/dat_files.py +192 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/electromagnetic_fields.py +429 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/field_map_loaders.py +184 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/interface.py +360 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/line.py +194 -0
- lightwin-0.9.1rc2/src/lightwin/tracewin_utils/load.py +215 -0
- lightwin-0.9.1rc2/src/lightwin/ui/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/ui/workflow_setup.py +253 -0
- lightwin-0.9.1rc2/src/lightwin/util/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/util/converters.py +149 -0
- lightwin-0.9.1rc2/src/lightwin/util/debug.py +309 -0
- lightwin-0.9.1rc2/src/lightwin/util/dicts_output.py +115 -0
- lightwin-0.9.1rc2/src/lightwin/util/helper.py +271 -0
- lightwin-0.9.1rc2/src/lightwin/util/log_manager.py +181 -0
- lightwin-0.9.1rc2/src/lightwin/util/pandas_helper.py +21 -0
- lightwin-0.9.1rc2/src/lightwin/util/pass_beauty.py +242 -0
- lightwin-0.9.1rc2/src/lightwin/util/phases.py +73 -0
- lightwin-0.9.1rc2/src/lightwin/util/pickling.py +79 -0
- lightwin-0.9.1rc2/src/lightwin/util/synchronous_phases.py +88 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/__init__.py +1 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/anim.py +73 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/ellipse.py +184 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/helper.py +84 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/optimization.py +124 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/plot.py +518 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/specs.py +62 -0
- lightwin-0.9.1rc2/src/lightwin/visualization/structure.py +203 -0
- lightwin-0.9.1rc2/tests/__init__.py +0 -0
- lightwin-0.9.1rc2/tests/beam_calculator/__init__.py +1 -0
- lightwin-0.9.1rc2/tests/beam_calculator/test_basic_compensation.py +165 -0
- lightwin-0.9.1rc2/tests/beam_calculator/test_envelope1d.py +142 -0
- lightwin-0.9.1rc2/tests/beam_calculator/test_envelope3d.py +124 -0
- lightwin-0.9.1rc2/tests/beam_calculator/test_tracewin.py +135 -0
- lightwin-0.9.1rc2/tests/compensation/test_design_spaces.py +168 -0
- lightwin-0.9.1rc2/tests/compensation/test_optimisation_algorithms.py +141 -0
- lightwin-0.9.1rc2/tests/config/__init__.py +1 -0
- lightwin-0.9.1rc2/tests/config/test_config_manager.py +373 -0
- lightwin-0.9.1rc2/tests/config/test_configurations.py +153 -0
- lightwin-0.9.1rc2/tests/config/test_confspec.py +143 -0
- lightwin-0.9.1rc2/tests/core/__init__.py +1 -0
- lightwin-0.9.1rc2/tests/core/test_instructions/__init__.py +1 -0
- lightwin-0.9.1rc2/tests/core/test_instructions/test_commands.py +177 -0
- lightwin-0.9.1rc2/tests/failure/__init__.py +0 -0
- lightwin-0.9.1rc2/tests/failure/test_helper.py +218 -0
- lightwin-0.9.1rc2/tests/pytest_helpers/__init__.py +0 -0
- lightwin-0.9.1rc2/tests/pytest_helpers/simulation_output.py +102 -0
- lightwin-0.9.1rc2/tests/tracewin_utils/conftest.py +735 -0
- lightwin-0.9.1rc2/tests/tracewin_utils/test_dat_line.py +198 -0
- lightwin-0.9.1rc2/tests/tracewin_utils/test_load_dat_file.py +100 -0
- lightwin-0.9.1rc2/tests/tracewin_utils/test_load_field_maps.py +105 -0
- lightwin-0.9.1rc2/tests/util/test_file_structure.py +45 -0
- lightwin-0.9.1rc2/tests/util/test_pickling.py +166 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: 🚀🏷️ Release tagged versions
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v*'
|
|
8
|
+
branches:
|
|
9
|
+
- experiment/auto-release
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build_wheels:
|
|
13
|
+
name: 🎡 Build wheels ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
|
14
|
+
runs-on: ${{ matrix.buildplat[0] }}
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python: ["cp312", "cp313"]
|
|
19
|
+
# This is taken from numpy's wheel.yml
|
|
20
|
+
# See also: https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
|
|
21
|
+
buildplat:
|
|
22
|
+
# MacOS
|
|
23
|
+
- [macos-13, macosx_x86_64]
|
|
24
|
+
- [macos-latest, macosx_arm64]
|
|
25
|
+
# Ubuntu
|
|
26
|
+
### 32 bits
|
|
27
|
+
- [ubuntu-latest, manylinux_i686]
|
|
28
|
+
- [ubuntu-latest, musllinux_i686]
|
|
29
|
+
### 64 bits
|
|
30
|
+
- [ubuntu-latest, manylinux_x86_64]
|
|
31
|
+
- [ubuntu-latest, musllinux_x86_64]
|
|
32
|
+
- [ubuntu-24.04-arm, manylinux_aarch64]
|
|
33
|
+
- [ubuntu-24.04-arm, musllinux_aarch64]
|
|
34
|
+
# Windows
|
|
35
|
+
### 32 bits
|
|
36
|
+
- [windows-latest, win32]
|
|
37
|
+
### 64 bits
|
|
38
|
+
- [windows-latest, win_amd64]
|
|
39
|
+
# Some distribution/OS are not excluded, as the corresponding dependency builds
|
|
40
|
+
# are not built and they cannot be built here
|
|
41
|
+
# (I think it is possible to build them, but this is not a priority right now)
|
|
42
|
+
exclude:
|
|
43
|
+
# Do not manage to build scipy
|
|
44
|
+
- buildplat: [ubuntu-24.04-arm, musllinux_aarch64]
|
|
45
|
+
- buildplat: [ubuntu-latest, manylinux_i686]
|
|
46
|
+
- buildplat: [ubuntu-latest, musllinux_i686]
|
|
47
|
+
# Does not manage to build matplotlib
|
|
48
|
+
- buildplat: [windows-latest, win32]
|
|
49
|
+
|
|
50
|
+
steps:
|
|
51
|
+
- name: 🔍 Checkout current repo
|
|
52
|
+
uses: actions/checkout@v4
|
|
53
|
+
with:
|
|
54
|
+
fetch-depth: 0
|
|
55
|
+
|
|
56
|
+
- name: 🐍 Setup Python ${{ matrix.python }} on ${{ matrix.buildplat[0] }}
|
|
57
|
+
uses: actions/setup-python@v5
|
|
58
|
+
with:
|
|
59
|
+
python-version: "3.12"
|
|
60
|
+
|
|
61
|
+
- name: 🔧 Build wheels
|
|
62
|
+
uses: pypa/cibuildwheel@v2.22.0
|
|
63
|
+
env:
|
|
64
|
+
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
|
65
|
+
|
|
66
|
+
- name: 📤 Upload artifact
|
|
67
|
+
uses: actions/upload-artifact@v4
|
|
68
|
+
with:
|
|
69
|
+
name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[0] }}-${{ matrix.buildplat[1] }}
|
|
70
|
+
path: ./wheelhouse/*.whl
|
|
71
|
+
|
|
72
|
+
make_sdist:
|
|
73
|
+
name: 📁 Make SDist
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
steps:
|
|
76
|
+
- name: 🔍 Checkout current repo
|
|
77
|
+
uses: actions/checkout@v4
|
|
78
|
+
with:
|
|
79
|
+
fetch-depth: 0
|
|
80
|
+
|
|
81
|
+
- name: 🔧 Build SDist
|
|
82
|
+
run: pipx run build --sdist
|
|
83
|
+
|
|
84
|
+
- name: 📤 Upload artifact
|
|
85
|
+
uses: actions/upload-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
name: cibw-sdist
|
|
88
|
+
path: dist/*.tar.gz
|
|
89
|
+
|
|
90
|
+
release_wheels_and_sdist:
|
|
91
|
+
name: 🚀 Release wheel and SDist
|
|
92
|
+
needs: [build_wheels, make_sdist]
|
|
93
|
+
environment: release
|
|
94
|
+
permissions:
|
|
95
|
+
id-token: write
|
|
96
|
+
runs-on: ubuntu-latest
|
|
97
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
98
|
+
steps:
|
|
99
|
+
- name: 📥 Download artifacts
|
|
100
|
+
uses: actions/download-artifact@v4
|
|
101
|
+
with:
|
|
102
|
+
pattern: cibw-*
|
|
103
|
+
path: dist
|
|
104
|
+
merge-multiple: true
|
|
105
|
+
|
|
106
|
+
- name: 🚀 Release on PyPi
|
|
107
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
108
|
+
with:
|
|
109
|
+
verbose: true
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: 🚦 Test last push
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
- 0.9.x
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
tests:
|
|
12
|
+
name: Test for ${{ matrix.python-version }}
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ["3.12"]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: 🔍 Checkout current repo
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: 🐍 Setup Python ${{ matrix.python-version }}
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python-version }}
|
|
27
|
+
allow-prereleases: true
|
|
28
|
+
|
|
29
|
+
- name: 📦 Install package
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
python -m pip install -e .[test]
|
|
33
|
+
|
|
34
|
+
- name: 🚦 Run tests
|
|
35
|
+
run: python -m pytest -m "not implementation and not tracewin and not slow and not cython"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: 📝 Update CITATION.cff
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
update-citation:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: 🔍 Checkout current repo
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
persists-credentials: true
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
|
|
23
|
+
- name: 🧃 Extract version and date
|
|
24
|
+
id: version
|
|
25
|
+
run: |
|
|
26
|
+
TAG=${GITHUB_REF#refs/tags/}
|
|
27
|
+
VERSION=${TAG:1}
|
|
28
|
+
DATE=$(date -u +"%Y-%m-%d")
|
|
29
|
+
echo "version=$VERSION" >> $GITHUB_ENV
|
|
30
|
+
echo "date=$DATE" >> $GITHUB_ENV
|
|
31
|
+
|
|
32
|
+
- name: ♻️ Update CITATION.cff
|
|
33
|
+
run: |
|
|
34
|
+
sed -i "s/^version:.*/version: ${{ env.version }}/" CITATION.cff
|
|
35
|
+
sed -i "s/^date-released:.*/date-released: '${{ env.date }}'/" CITATION.cff
|
|
36
|
+
|
|
37
|
+
- name: 💾 Commit changes
|
|
38
|
+
run: |
|
|
39
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
40
|
+
git config --local user.name "github-actions[bot]"
|
|
41
|
+
git add CITATION.cff
|
|
42
|
+
git commit -m "Update CITATION.cff for release ${{ env.version }}"
|
|
43
|
+
|
|
44
|
+
- name: 🧩 Extract branch name (if triggered by tag)
|
|
45
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
46
|
+
id: branch
|
|
47
|
+
run: |
|
|
48
|
+
TAG_SHA=$(git rev-list -n 1 ${{ github.ref_name }})
|
|
49
|
+
BRANCH_NAME=$(git branch -r --contains $TAG_SHA | grep -v HEAD | sed 's/origin\///' | head -n 1 | tr -d '[:space:]')
|
|
50
|
+
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
|
51
|
+
|
|
52
|
+
- name: 🌱 Push changes to current branch
|
|
53
|
+
uses: ad-m/github-push-action@master
|
|
54
|
+
with:
|
|
55
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
56
|
+
branch: ${{ steps.branch.outputs.branch_name || github.ref_name }}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
docs/_autosummary/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# poetry
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
103
|
+
#poetry.lock
|
|
104
|
+
|
|
105
|
+
# pdm
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
107
|
+
#pdm.lock
|
|
108
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
109
|
+
# in version control.
|
|
110
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
111
|
+
.pdm.toml
|
|
112
|
+
|
|
113
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
114
|
+
__pypackages__/
|
|
115
|
+
|
|
116
|
+
# Celery stuff
|
|
117
|
+
celerybeat-schedule
|
|
118
|
+
celerybeat.pid
|
|
119
|
+
|
|
120
|
+
# SageMath parsed files
|
|
121
|
+
*.sage.py
|
|
122
|
+
|
|
123
|
+
# Environments
|
|
124
|
+
.env
|
|
125
|
+
.venv
|
|
126
|
+
env/
|
|
127
|
+
venv/
|
|
128
|
+
ENV/
|
|
129
|
+
env.bak/
|
|
130
|
+
venv.bak/
|
|
131
|
+
|
|
132
|
+
# Spyder project settings
|
|
133
|
+
.spyderproject
|
|
134
|
+
.spyproject
|
|
135
|
+
|
|
136
|
+
# Rope project settings
|
|
137
|
+
.ropeproject
|
|
138
|
+
|
|
139
|
+
# mkdocs documentation
|
|
140
|
+
/site
|
|
141
|
+
|
|
142
|
+
# mypy
|
|
143
|
+
.mypy_cache/
|
|
144
|
+
.dmypy.json
|
|
145
|
+
dmypy.json
|
|
146
|
+
|
|
147
|
+
# Pyre type checker
|
|
148
|
+
.pyre/
|
|
149
|
+
|
|
150
|
+
# pytype static type analyzer
|
|
151
|
+
.pytype/
|
|
152
|
+
|
|
153
|
+
# Cython debug symbols
|
|
154
|
+
cython_debug/
|
|
155
|
+
|
|
156
|
+
# PyCharm
|
|
157
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
158
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
159
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
160
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
161
|
+
#.idea/
|
|
162
|
+
|
|
163
|
+
# LightWin
|
|
164
|
+
archives/
|
|
165
|
+
|
|
166
|
+
data/from_tracewin_examples/
|
|
167
|
+
data/example/*.py
|
|
168
|
+
data/example/example_new.ini
|
|
169
|
+
data/example/optimization_history/
|
|
170
|
+
data/example/results/
|
|
171
|
+
data/example/results_tests/
|
|
172
|
+
data/test_instructions/results/*
|
|
173
|
+
data/test_instructions/results_tests/*
|
|
174
|
+
|
|
175
|
+
# Do not track additional files
|
|
176
|
+
src/lightwin/data/ads/*
|
|
177
|
+
|
|
178
|
+
docs/source/manual/notebooks/*.py
|
|
179
|
+
images/
|
|
180
|
+
source/build/
|
|
181
|
+
source/untitled*.py
|
|
182
|
+
*.c
|
|
183
|
+
*.cal
|
|
184
|
+
*.json
|
|
185
|
+
*.old
|
|
186
|
+
*.old.ini
|
|
187
|
+
*.pdf
|
|
188
|
+
*.pkl
|
|
189
|
+
*.swp
|
|
190
|
+
*.swo
|
|
191
|
+
|
|
192
|
+
tests/data/*.py
|
|
193
|
+
tests/data/example_new.ini
|
|
194
|
+
tests/data/optimization_history/
|
|
195
|
+
tests/data/results/
|
|
196
|
+
tests/data/results_tests/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: "v5.0.0"
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-added-large-files
|
|
6
|
+
- id: check-case-conflict
|
|
7
|
+
- id: check-docstring-first
|
|
8
|
+
- id: check-executables-have-shebangs
|
|
9
|
+
- id: check-illegal-windows-names
|
|
10
|
+
- id: check-merge-conflict
|
|
11
|
+
- id: check-shebang-scripts-are-executable
|
|
12
|
+
- id: check-symlinks
|
|
13
|
+
- id: check-toml
|
|
14
|
+
- id: check-yaml
|
|
15
|
+
- id: debug-statements
|
|
16
|
+
- id: destroyed-symlinks
|
|
17
|
+
- id: end-of-file-fixer
|
|
18
|
+
types_or: [python, toml]
|
|
19
|
+
- id: fix-byte-order-marker
|
|
20
|
+
- id: mixed-line-ending
|
|
21
|
+
types_or: [python, toml]
|
|
22
|
+
- id: name-tests-test
|
|
23
|
+
args: ["--pytest-test-first"]
|
|
24
|
+
exclude: ^tests/pytest_helpers/.*\.py$
|
|
25
|
+
- id: trailing-whitespace
|
|
26
|
+
types_or: [python, toml]
|
|
27
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
28
|
+
rev: v3.19.1
|
|
29
|
+
hooks:
|
|
30
|
+
- id: pyupgrade
|
|
31
|
+
- repo: https://github.com/pycqa/isort # args set in pyproject.toml
|
|
32
|
+
rev: 5.13.2
|
|
33
|
+
hooks:
|
|
34
|
+
- id: isort
|
|
35
|
+
name: isort (python)
|
|
36
|
+
- id: isort
|
|
37
|
+
name: isort (cython)
|
|
38
|
+
types: [cython]
|
|
39
|
+
- repo: https://github.com/psf/black # args set in pyproject.toml
|
|
40
|
+
rev: 24.10.0
|
|
41
|
+
hooks:
|
|
42
|
+
- id: black
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Read the Docs configuration file for Sphinx projects
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
|
|
6
|
+
build:
|
|
7
|
+
os: ubuntu-24.04
|
|
8
|
+
tools:
|
|
9
|
+
python: "3.12"
|
|
10
|
+
|
|
11
|
+
python:
|
|
12
|
+
install:
|
|
13
|
+
- requirements: docs/requirements.txt
|
|
14
|
+
- method: pip
|
|
15
|
+
path: .
|
|
16
|
+
extra_requirements:
|
|
17
|
+
- docs
|
|
18
|
+
|
|
19
|
+
sphinx:
|
|
20
|
+
configuration: docs/conf.py
|
|
21
|
+
# fail_on_warning: true
|