Restructuring init.py & input.py
Los mantenedores suelen responder en 1 día
@clmould ya está trabajando en esto.
Desde el 29/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Looks good just the one structural comment. I think we can go further to collating some of these thing under one wrapper.
Move the init.py file into the core/data_structure folder I think. The contents of that file is 90% the check_process. I would rename the file to check_input.py. The other functions in that file can go onto the DataStructure object in data_structure/base.py except for get_git_summary which I would put in as a standalone function in the file. In my head the check_process function will eventually disappear as the validation moves onto the individual data structure objects. Right now we should just isolate it.
All of the functions in input.py can also move to the data structure. I would leave InputVariable and the associated dictionary where it is
Originally posted by @je-cook in https://github.com/ukaea/PROCESS/pull/4523#pullrequestreview-5694990882
It feels like all of these should be methods on the data structure as they all only take it as input.
data.parse_input_file(in_dat)
data.set_active_constraints()
data.set_device_type()
data.check_process()
data.run_summary() # maybe rename, its not running anything, suggestion "write_outfile_header"
you could also combine them into one call of data.setup(in_dat) or similar. Or even data.setup(InDat(filename=data.globals.fileprefix, update_obsolete=update_obsolete)) you could maybe do away with this whole function entirely if we do that. So you would just call some data.setup in initiailse
Originally posted by @je-cook in https://github.com/ukaea/PROCESS/pull/4523#discussion_r4410290399
- Lenguaje dominante
- Python
- Estrellas
- 75
- Forks
- 29
- Merge medio
- 3 d 3 h
- PR fusionados (30 d)
- 40
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ukaea/PROCESS
-
Add variable types and descriptions to `plasma_main_page()`Posiblemente ocupada @timothy-nunn la tomó hace 13 días. Abiertopapercut
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ukaea/PROCESS#4669 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Blocked Command Line Interface Input/Output Files
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ukaea/PROCESS#4161 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
:bug: `--mfile` arg does not work as expectedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoCommand Line Interface
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ukaea/PROCESS#4011 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Constraints of order unityPosiblemente ocupada @timothy-nunn la tomó hace 13 días. AbiertoConvergence
ukaea/PROCESS#4704 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
PROCESS has three separate TF temperature margin variables. For CROCO two are calculated differentlyPosiblemente ocupada @CoronelBuendia la tomó hace 19 días. AbiertoBug TF Coil
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de ukaea/PROCESS
Issues similares
-
New InternshipAbiertonew_internship
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
get_graph warns that the oneway column is missing when no way has a oneway tagPosiblemente ocupada @HTenkanen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cython/cython#8110 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
fix: security 🔐 style: article/section 📝 system: data-mgmt 🗃️ system: security 🔐 system: software 💻
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
uabrc/uabrc.github.io#1267 ·
-
Link Checker ReportAbiertoBot Type: Bug Type: Documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día