noaa-ocs-modeling / nemspy Goto Github PK
View Code? Open in Web Editor NEWNEMS configuration generation
Home Page: https://nemspy.readthedocs.io
License: Creative Commons Zero v1.0 Universal
NEMS configuration generation
Home Page: https://nemspy.readthedocs.io
License: Creative Commons Zero v1.0 Universal
model_configure
is currently mostly hardcoded; need to add parameters to the ModelConfiguration
object:
nemspy/nemspy/configuration.py
Lines 373 to 528 in f0b9c25
implement nested run sequences and arbitrary FORTRAN functions, as in this config:
https://github.com/NOAA-EMC/DATM-MOM6-CICE5/blob/ca3d21bd89f967e4c25953eaa3349829c739b528/parm/nems.configure.med_atm_ocn_ice.IN#L51-L70
# Run Sequence #
runSeq::
@@[coupling_interval_slow_sec]
MED MedPhase_prep_ocn
MED -> OCN :remapMethod=redist
OCN
@@[coupling_interval_fast_sec]
MED MedPhase_prep_ice
MED -> ICE :remapMethod=redist
ATM
ICE
ATM -> MED :remapMethod=redist
ICE -> MED :remapMethod=redist
MED MedPhase_atm_ocn_flux
MED MedPhase_accum_fast
@
OCN -> MED :remapMethod=redist
MED MedPhase_write_restart
@
::
build check fails on windows-latest
due to unset environment variable; referenced in issue mtkennerly/dunamai-action#1
when setting .sequence
, the interface matches the first instance of the specified model / connection, and raises an error if a matching model / connection was already specified earlier in the passed sequence:
Lines 100 to 145 in d1b45bb
This is potentially a problem if the same model or connection should be used more than once, such as
OCN
OCN -> ATM
ATM
ATM -> OCN
OCN
OCN -> WAV
@saeed-moghimi-noaa is this possible?
docs
directoryI generated the docs
directory using the sphinx-quickstart
command
./docs
index.rst
(docs homepage)this page includes the README file using m2r2
, and then includes a hidden table of contents (so the sidebar includes these links)
Lines 1 to 9 in 08b454c
Sphinx can use automodule
, autoclass
, and autofunction
nemspy/docs/source/nemspy.interface.rst
Lines 1 to 4 in 08b454c
Line 42 in 08b454c
pip install -e .[documentation]
to build the website with Sphinx, run the following:
cd docs
make html
Lines 1 to 20 in 08b454c
ModelEntry
should be deep copied to prevent incorrect PET assignment if the same model entry is shared between two or more modeling systems
build a GitHub Workflow for generating documentation with Sphinx
https://github.com/noaa-ocs-modeling/NEMSpy/blob/33323ae4135ca0b9cd3679bd7e53f6919afc0ad2/examples/example_1.py#L15-L20
How is the execution order defined?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.