Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

web.load incompatibility with latest tidy 3.9

Abierto
#667 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend, data

Línea de trabajo

Start by locating the web.load implementation and checking how it validates simulation data against tidy. Compare the listed validation errors with the tidy 3.9 and gplugins 3.8 versions identified in the issue. Done means data created before the upgrade loads successfully; the issue does not identify a test or prescribe a compatible change.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Describe the bug
When upgrading to the latest tidy version (3.9), we find that web.load fails and gives the following error:
sim_data = web.load('<HASH>', verbose=False)

Error:

WARNING: updating Simulation from 2.9 to 2.8                       
WARNING: Could not execute validator                               
'_source_homogeneous_isotropic' because field 'structures' failed  
validation.                                                        
WARNING: Could not execute validator 'plane_wave_boundaries'       
because field 'structures' failed validation.                      
WARNING: Could not execute validator 'tfsf_boundaries' because     
field 'structures' failed validation.                              
WARNING: Could not execute validator '_structures_not_close_pml'   
because field 'structures' failed validation.                      
WARNING: Could not execute validator 'bloch_boundaries_diff_mnt'   
because field 'structures' failed validation.                      
WARNING: Could not execute validator                               
'_warn_monitor_mediums_frequency_range' because field 'structures' 
failed validation.                                                 
WARNING: Could not execute validator                               
'_projection_monitors_homogeneous' because field 'structures'      
failed validation.                                                 
WARNING: Could not execute validator                               
'diffraction_and_directivity_monitor_medium' because field         
'structures' failed validation.                                    
WARNING: Could not execute validator '_warn_grid_size_too_small'   
because field 'structures' failed validation.                      
WARNING: Could not execute validator                               
'_validate_num_lumped_elements' because field 'structures' failed  
validation.                                                        
WARNING: Could not execute validator 'check_fixed_angle_components'
because field 'structures' failed validation.                      
WARNING: Could not execute validator 'data_monitors_match_sim'     
because field 'simulation' failed validation.                      
WARNING: Could not execute validator 'validate_no_ambiguity'       
because field 'simulation' failed validation.             


ValidationError: 10 validation errors for SimulationData
simulation -> structures -> 0 -> priority
  extra fields not permitted (type=value_error.extra)
simulation -> structures -> 1 -> priority
  extra fields not permitted (type=value_error.extra)
simulation -> structures -> 2 -> priority
  extra fields not permitted (type=value_error.extra)
simulation -> structures -> 3 -> priority
  extra fields not permitted (type=value_error.extra)
simulation -> subpixel
  value could not be parsed to a boolean (type=type_error.bool)
simulation -> subpixel -> pec -> PECConformal -> edge_singularity_correction
  extra fields not permitted (type=value_error.extra)
simulation -> subpixel -> lossy_metal -> SurfaceImpedance -> edge_singularity_correction
  extra fields not permitted (type=value_error.extra)
simulation -> subpixel -> pmc
  extra fields not permitted (type=value_error.extra)
simulation -> precision
  extra fields not permitted (type=value_error.extra)
simulation -> structure_priority_mode
  extra fields not permitted (type=value_error.extra)

Expected behavior
We expect to successfully load the data post sim as it always did in the past. From my understanding, tidy is performing validations of the sim and somehow in the new version these validation checks have changed and are incompatible with our version (3.8) of web.load.

Suggested fix
It may require discussion with flexcompute.

Versions
Image

Lenguaje dominante
Python
Estrellas
62
Forks
66
Merge medio
1 d 12 h
PR fusionados (30 d)
10

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de gdsfactory/gplugins

Todos los issues de gdsfactory/gplugins

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.