rompy 0.2.5__tar.gz → 0.2.7__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.
Files changed (263) hide show
  1. {rompy-0.2.5/rompy.egg-info → rompy-0.2.7}/PKG-INFO +1 -1
  2. {rompy-0.2.5 → rompy-0.2.7}/rompy/__init__.py +1 -1
  3. {rompy-0.2.5 → rompy-0.2.7}/rompy/cli.py +23 -16
  4. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/source.py +15 -1
  5. {rompy-0.2.5 → rompy-0.2.7/rompy.egg-info}/PKG-INFO +1 -1
  6. {rompy-0.2.5 → rompy-0.2.7}/LICENSE +0 -0
  7. {rompy-0.2.5 → rompy-0.2.7}/MANIFEST.in +0 -0
  8. {rompy-0.2.5 → rompy-0.2.7}/README.md +0 -0
  9. {rompy-0.2.5 → rompy-0.2.7}/docs/Makefile +0 -0
  10. {rompy-0.2.5 → rompy-0.2.7}/docs/make.bat +0 -0
  11. {rompy-0.2.5 → rompy-0.2.7}/docs/source/api.rst +0 -0
  12. {rompy-0.2.5 → rompy-0.2.7}/docs/source/conf.py +0 -0
  13. {rompy-0.2.5 → rompy-0.2.7}/docs/source/core_concepts.rst +0 -0
  14. {rompy-0.2.5 → rompy-0.2.7}/docs/source/demo.rst +0 -0
  15. {rompy-0.2.5 → rompy-0.2.7}/docs/source/index.rst +0 -0
  16. {rompy-0.2.5 → rompy-0.2.7}/docs/source/models.rst +0 -0
  17. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/demo.ipynb +0 -0
  18. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/oceanum_example.ipynb +0 -0
  19. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/physics.ipynb +0 -0
  20. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/schism_procedural.ipynb +0 -0
  21. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/.gitignore +0 -0
  22. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/boundary/boundnest1.ipynb +0 -0
  23. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/boundary/boundspec_segment.ipynb +0 -0
  24. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/boundary/boundspec_side.ipynb +0 -0
  25. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/components/output.ipynb +0 -0
  26. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/example_declarative.ipynb +0 -0
  27. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/example_declarative.yml +0 -0
  28. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/example_procedural.ipynb +0 -0
  29. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/example_sensitivity.ipynb +0 -0
  30. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan/example_sensitivity.yml +0 -0
  31. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan-config-components.ipynb +0 -0
  32. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/swan-config-components.yml +0 -0
  33. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/templates/swan-physics-predefined/{{runtime.run_id}}/INPUT +0 -0
  34. {rompy-0.2.5 → rompy-0.2.7}/docs/source/notebooks/templates_demo.ipynb +0 -0
  35. {rompy-0.2.5 → rompy-0.2.7}/docs/source/quickstart.rst +0 -0
  36. {rompy-0.2.5 → rompy-0.2.7}/docs/source/schism/index.rst +0 -0
  37. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/boundary.rst +0 -0
  38. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/cgrid.rst +0 -0
  39. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/group.rst +0 -0
  40. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/inpgrid.rst +0 -0
  41. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/lockup.rst +0 -0
  42. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/numerics.rst +0 -0
  43. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/output.rst +0 -0
  44. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/physics.rst +0 -0
  45. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/components/startup.rst +0 -0
  46. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/index.rst +0 -0
  47. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/base.rst +0 -0
  48. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/boundary.rst +0 -0
  49. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/cgrid.rst +0 -0
  50. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/numerics.rst +0 -0
  51. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/output.rst +0 -0
  52. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/physics.rst +0 -0
  53. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/readgrid.rst +0 -0
  54. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/spectrum.rst +0 -0
  55. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/startup.rst +0 -0
  56. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/subcomponents/time.rst +0 -0
  57. {rompy-0.2.5 → rompy-0.2.7}/docs/source/swan/types.rst +0 -0
  58. {rompy-0.2.5 → rompy-0.2.7}/notebooks/components/swan-config-components.yml +0 -0
  59. {rompy-0.2.5 → rompy-0.2.7}/notebooks/schism/demo.yaml +0 -0
  60. {rompy-0.2.5 → rompy-0.2.7}/notebooks/swan/example_declarative.yml +0 -0
  61. {rompy-0.2.5 → rompy-0.2.7}/notebooks/swan/example_sensitivity.yml +0 -0
  62. {rompy-0.2.5 → rompy-0.2.7}/pyproject.toml +0 -0
  63. {rompy-0.2.5 → rompy-0.2.7}/rompy/.github/default.yml +0 -0
  64. {rompy-0.2.5 → rompy-0.2.7}/rompy/_version.py +0 -0
  65. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/filesystem.py +0 -0
  66. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/model.py +0 -0
  67. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/test_filesystem.py +0 -0
  68. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/test_model.py +0 -0
  69. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/test_transform.py +0 -0
  70. {rompy-0.2.5 → rompy-0.2.7}/rompy/archive/transform.py +0 -0
  71. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/aodn.yaml +0 -0
  72. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/bom.yaml +0 -0
  73. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/csiro.yaml +0 -0
  74. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/dot_wa.yaml +0 -0
  75. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/gfs.yml +0 -0
  76. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/master.yaml +0 -0
  77. {rompy-0.2.5 → rompy-0.2.7}/rompy/catalogs/oceanum.yaml +0 -0
  78. {rompy-0.2.5 → rompy-0.2.7}/rompy/configuration/base.py +0 -0
  79. {rompy-0.2.5 → rompy-0.2.7}/rompy/configuration/swan.py +0 -0
  80. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/__init__.py +0 -0
  81. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/boundary.py +0 -0
  82. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/config.py +0 -0
  83. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/data.py +0 -0
  84. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/filters.py +0 -0
  85. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/grid.py +0 -0
  86. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/render.py +0 -0
  87. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/spectrum.py +0 -0
  88. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/time.py +0 -0
  89. {rompy-0.2.5 → rompy-0.2.7}/rompy/core/types.py +0 -0
  90. {rompy-0.2.5 → rompy-0.2.7}/rompy/model.py +0 -0
  91. {rompy-0.2.5 → rompy-0.2.7}/rompy/plotting.py +0 -0
  92. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/__init__.py +0 -0
  93. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/config.py +0 -0
  94. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/data.py +0 -0
  95. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/grid.py +0 -0
  96. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/interface.py +0 -0
  97. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/__init__.py +0 -0
  98. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/basemodel.py +0 -0
  99. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/ice.py +0 -0
  100. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/icm.py +0 -0
  101. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/mice.py +0 -0
  102. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/param.py +0 -0
  103. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/sediment.py +0 -0
  104. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/wwminput_WW3.py +0 -0
  105. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/claude_full/wwminput_spectra.py +0 -0
  106. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/cosine.py +0 -0
  107. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/example_nml.py +0 -0
  108. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/generate_models.py +0 -0
  109. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/generate_models_llm.py +0 -0
  110. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/generate_models_llm_sections.py +0 -0
  111. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/generate_models_llmv2.py +0 -0
  112. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/handwritten/cosine.py +0 -0
  113. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/handwritten/ice.py +0 -0
  114. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/handwritten/icm.py +0 -0
  115. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/handwritten/param.py +0 -0
  116. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/handwritten/sediment.py +0 -0
  117. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/ice.py +0 -0
  118. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/icm.py +0 -0
  119. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/mice.py +0 -0
  120. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/param.py +0 -0
  121. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/sample_inputs/create_model.py +0 -0
  122. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/sample_inputs/render.py +0 -0
  123. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/schism.py +0 -0
  124. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/sediment.py +0 -0
  125. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/sflux.py +0 -0
  126. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/wwminput.py +0 -0
  127. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/wwminput_WW3.py +0 -0
  128. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/namelists/wwminput_spectra.py +0 -0
  129. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/dates.py +0 -0
  130. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/__init__.py +0 -0
  131. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/base.py +0 -0
  132. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/__init__.py +0 -0
  133. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/base.py +0 -0
  134. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/bctides.py +0 -0
  135. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/fes2014.py +0 -0
  136. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/hamtide.py +0 -0
  137. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/tides.py +0 -0
  138. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/bctides/tpxo.py +0 -0
  139. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/hycom/__init__.py +0 -0
  140. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/hycom/base.py +0 -0
  141. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/hycom/gofs.py +0 -0
  142. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/hycom/hycom2schism.py +0 -0
  143. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/forcing/hycom/rtofs2schism.py +0 -0
  144. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/__init__.py +0 -0
  145. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/base.py +0 -0
  146. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/boundaries.py +0 -0
  147. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/fgrid.py +0 -0
  148. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/figures.py +0 -0
  149. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/gridgr3.py +0 -0
  150. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/hgrid.py +0 -0
  151. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/parsers/__init__.py +0 -0
  152. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/parsers/grd.py +0 -0
  153. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/parsers/sms2dm.py +0 -0
  154. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/prop.py +0 -0
  155. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/pyschism/mesh/vgrid.py +0 -0
  156. {rompy-0.2.5 → rompy-0.2.7}/rompy/schism/utils.py +0 -0
  157. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/__init__.py +0 -0
  158. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/boundary.py +0 -0
  159. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/__init__.py +0 -0
  160. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/base.py +0 -0
  161. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/boundary.py +0 -0
  162. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/cgrid.py +0 -0
  163. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/group.py +0 -0
  164. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/inpgrid.py +0 -0
  165. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/lockup.py +0 -0
  166. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/numerics.py +0 -0
  167. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/output.py +0 -0
  168. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/physics.py +0 -0
  169. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/components/startup.py +0 -0
  170. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/config.py +0 -0
  171. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/data.py +0 -0
  172. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/grid.py +0 -0
  173. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/interface.py +0 -0
  174. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/legacy.py +0 -0
  175. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/__init__.py +0 -0
  176. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/base.py +0 -0
  177. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/boundary.py +0 -0
  178. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/numerics.py +0 -0
  179. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/output.py +0 -0
  180. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/physics.py +0 -0
  181. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/readgrid.py +0 -0
  182. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/spectrum.py +0 -0
  183. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/startup.py +0 -0
  184. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/subcomponents/time.py +0 -0
  185. {rompy-0.2.5 → rompy-0.2.7}/rompy/swan/types.py +0 -0
  186. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/base/{{runtime.run_id}}/INPUT +0 -0
  187. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/base/{{runtime.run_id}}/datasets/readme.md +0 -0
  188. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/base/{{runtime.run_id}}/outputs/readme.md +0 -0
  189. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schism/{{runtime.run_id}}/README +0 -0
  190. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schism/{{runtime.run_id}}/datasets/readme.md +0 -0
  191. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schism/{{runtime.run_id}}/outputs/readme.md +0 -0
  192. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schism/{{runtime.run_id}}/sflux/README +0 -0
  193. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/README +0 -0
  194. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/datasets/readme.md +0 -0
  195. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/outputs/readme.md +0 -0
  196. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/param.nml +0 -0
  197. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/sflux/README +0 -0
  198. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/schismcsiro/{{runtime.run_id}}/wwminput.nml +0 -0
  199. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swan/cookiecutter.json +0 -0
  200. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swan/{{runtime.run_id}}/INPUT +0 -0
  201. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swan/{{runtime.run_id}}/datasets/readme.md +0 -0
  202. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swan/{{runtime.run_id}}/out.loc +0 -0
  203. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swan/{{runtime.run_id}}/outputs/readme.md +0 -0
  204. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swanbasic/{{runtime.run_id}}/INPUT +0 -0
  205. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swanbasic/{{runtime.run_id}}/datasets/readme.md +0 -0
  206. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swanbasic/{{runtime.run_id}}/outputs/readme.md +0 -0
  207. {rompy-0.2.5 → rompy-0.2.7}/rompy/templates/swancomp/{{runtime.run_id}}/INPUT +0 -0
  208. {rompy-0.2.5 → rompy-0.2.7}/rompy/utils.py +0 -0
  209. {rompy-0.2.5 → rompy-0.2.7}/rompy.egg-info/SOURCES.txt +0 -0
  210. {rompy-0.2.5 → rompy-0.2.7}/rompy.egg-info/dependency_links.txt +0 -0
  211. {rompy-0.2.5 → rompy-0.2.7}/rompy.egg-info/entry_points.txt +0 -0
  212. {rompy-0.2.5 → rompy-0.2.7}/rompy.egg-info/requires.txt +0 -0
  213. {rompy-0.2.5 → rompy-0.2.7}/rompy.egg-info/top_level.txt +0 -0
  214. {rompy-0.2.5 → rompy-0.2.7}/scripts/ci/environment-pip.yml +0 -0
  215. {rompy-0.2.5 → rompy-0.2.7}/setup.cfg +0 -0
  216. {rompy-0.2.5 → rompy-0.2.7}/tests/data/catalog.yaml +0 -0
  217. {rompy-0.2.5 → rompy-0.2.7}/tests/data/wind.csv +0 -0
  218. {rompy-0.2.5 → rompy-0.2.7}/tests/example_configs/make_full_yaml.py +0 -0
  219. {rompy-0.2.5 → rompy-0.2.7}/tests/example_configs/test.yaml +0 -0
  220. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/configs/csiro.yaml +0 -0
  221. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_data/download_era5_datamesh.py +0 -0
  222. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_data/download_hycom.py +0 -0
  223. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_data/download_tides.py +0 -0
  224. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_grid.py +0 -0
  225. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_namelists.py +0 -0
  226. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_nml.py +0 -0
  227. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_schism_csiro.py +0 -0
  228. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_schism_csiro_migration.py +0 -0
  229. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_schism_data.py +0 -0
  230. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_schism_nml.py +0 -0
  231. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/test_vgridgenerators.py +0 -0
  232. {rompy-0.2.5 → rompy-0.2.7}/tests/schism/utils.py +0 -0
  233. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_base.py +0 -0
  234. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_boundary.py +0 -0
  235. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_cgrid.py +0 -0
  236. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_inpgrid.py +0 -0
  237. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_lockup.py +0 -0
  238. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_output.py +0 -0
  239. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_physics.py +0 -0
  240. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/components/test_startup.py +0 -0
  241. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/subcomponents/test_subcomponent_boundary.py +0 -0
  242. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/subcomponents/test_subcomponent_physics.py +0 -0
  243. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/subcomponents/test_subcomponent_readgrid.py +0 -0
  244. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/subcomponents/test_subcomponent_shape.py +0 -0
  245. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/subcomponents/test_subcomponent_time.py +0 -0
  246. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/swan_model.yml +0 -0
  247. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/test_swan_config.py +0 -0
  248. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/test_swan_model.py +0 -0
  249. {rompy-0.2.5 → rompy-0.2.7}/tests/swan/test_swan_types.py +0 -0
  250. {rompy-0.2.5 → rompy-0.2.7}/tests/test_basegrid.py +0 -0
  251. {rompy-0.2.5 → rompy-0.2.7}/tests/test_basemodel.py +0 -0
  252. {rompy-0.2.5 → rompy-0.2.7}/tests/test_data.py +0 -0
  253. {rompy-0.2.5 → rompy-0.2.7}/tests/test_intake_driver.py +0 -0
  254. {rompy-0.2.5 → rompy-0.2.7}/tests/test_serilization.py +0 -0
  255. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swanbasic.py +0 -0
  256. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swanboundary.py +0 -0
  257. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swandata.py +0 -0
  258. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swangrid.py +0 -0
  259. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swanmodel.py +0 -0
  260. {rompy-0.2.5 → rompy-0.2.7}/tests/test_swantemplate.py +0 -0
  261. {rompy-0.2.5 → rompy-0.2.7}/tests/test_templates.py +0 -0
  262. {rompy-0.2.5 → rompy-0.2.7}/tests/test_time.py +0 -0
  263. {rompy-0.2.5 → rompy-0.2.7}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rompy
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Relocatable Ocean Modelling in PYthon (rompy)
5
5
  Author-email: CSIRO <paul.branson@csiro.au>
6
6
  Maintainer-email: Paul Branson <paul.branson@csiro.au>, Tom Durrant <t.durrant@oceanum.science>, Rafael Guedes <r.guedes@oceanum.science>
@@ -14,7 +14,7 @@ from pathlib import Path
14
14
  logger = logging.getLogger(__name__)
15
15
 
16
16
  # __version__ = _version.get_versions()["version"]
17
- __version__ = "0.2.5"
17
+ __version__ = "0.2.7"
18
18
 
19
19
  ROOT_DIR = Path(__file__).parent.resolve()
20
20
  TEMPLATES_DIR = ROOT_DIR / "templates"
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  import json
4
2
  import logging
5
3
  from importlib.metadata import entry_points
@@ -7,11 +5,10 @@ from importlib.metadata import entry_points
7
5
  import click
8
6
  import yaml
9
7
 
10
- from .model import ModelRun
11
-
12
- logging.basicConfig(level=logging.INFO)
8
+ from rompy.model import ModelRun
13
9
 
14
10
  installed = entry_points(group="rompy.config").names
11
+ logger = logging.getLogger(__name__)
15
12
 
16
13
 
17
14
  @click.command()
@@ -26,23 +23,33 @@ def main(model, config, zip):
26
23
  config(str): yaml or json config file
27
24
  """
28
25
  try:
29
- # First try to open it as a file
30
26
  with open(config, "r") as f:
31
27
  content = f.read()
32
28
  except (FileNotFoundError, IsADirectoryError, OSError):
33
- # If not a file, treat it as raw content
29
+ # Not a file, treat as raw string
34
30
  content = config
35
31
 
32
+ logger.info("Loading config...")
33
+
34
+ args = None
35
+ # Try JSON first
36
36
  try:
37
- # Try to parse as yaml
38
- args = yaml.load(content, Loader=yaml.Loader)
39
- model = ModelRun(**args)
40
- except TypeError:
41
- model = ModelRun.model_validate_json(json.loads(content))
37
+ args = json.loads(content)
38
+ logger.info("Parsed config as JSON")
39
+ except json.JSONDecodeError:
40
+ pass
41
+
42
+ # If JSON failed, try YAML
43
+ if args is None:
44
+ try:
45
+ args = yaml.safe_load(content)
46
+ logger.info("Parsed config as YAML")
47
+ except yaml.YAMLError as e:
48
+ logger.error(f"Failed to parse config as JSON or YAML: {e}")
49
+ raise click.UsageError("Config file is not valid JSON or YAML")
50
+
51
+ model = ModelRun(**args)
52
+ logger.info("Running model...")
42
53
  model()
43
54
  if zip:
44
55
  model.zip()
45
-
46
-
47
- if __name__ == "__main__":
48
- main()
@@ -58,7 +58,21 @@ class SourceBase(RompyBaseModel, ABC):
58
58
  """
59
59
  ds = self._open()
60
60
  if variables:
61
- ds = ds[variables]
61
+ try:
62
+ ds = ds[variables]
63
+ except KeyError as e:
64
+ dataset_variables = list(ds.data_vars.keys())
65
+ missing_variables = list(set(variables) - set(dataset_variables))
66
+ raise ValueError(
67
+ f"Cannot find requested variables in dataset.\n\n"
68
+ f"Requested variables in the Data object: {variables}\n"
69
+ f"Available variables in source dataset: {dataset_variables}\n"
70
+ f"Missing variables: {missing_variables}\n\n"
71
+ f"Please check:\n"
72
+ f"1. The variable names in your Data object, make sure you check for default values\n"
73
+ f"2. The data source contains the expected variables\n"
74
+ f"3. If using a custom data source, ensure it creates variables with the correct names"
75
+ ) from e
62
76
  if filters:
63
77
  ds = filters(ds)
64
78
  return ds
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rompy
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Relocatable Ocean Modelling in PYthon (rompy)
5
5
  Author-email: CSIRO <paul.branson@csiro.au>
6
6
  Maintainer-email: Paul Branson <paul.branson@csiro.au>, Tom Durrant <t.durrant@oceanum.science>, Rafael Guedes <r.guedes@oceanum.science>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes