-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v0.1.0 #79
Merged
Merged
Release v0.1.0 #79
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chose a value of 10 because it is both lower than simulation period for main run (12 days), and greater than spinup period (6days), effectively resulting in 6 day record stream beats in both cases but for different algorithmic reasons (i.e. shortened to keep a multiple of simulation period in the former case, shortened/limited to/by the spin up period in the latter case).
Add time slicing for input reading and output writing
Sphinx CSS has not taken into the new use of HTML5 tags in `docutils` (in v0.17). By using latest `sphinx_rtd_theme` (0.5.2), it makes sure the version of `docutils` is <0.17 (where HTML5 tags where not in use yet).
This way, the expensive computation of the weights is done once in set up, and then the weights are hold on to through the `RegridOperator` to be used when transfers are retrieved and remapping is required.
Following the evolving API of `cf-python` on this newly created functionality, we agreed that the method was unnecessary where using a `RegridOperator`.
Cache remapping weights
- move components/component.py to component.py - move components/_utils/* to _utils/* - rename records.py to record.py - rename states.py to state.py
was based on former subpackage components also refactored test package to reflect the new organisation of the cm4twc package
Old *info* properties used to return references to the internal dictionaries used to define the components, which was dangerous because the user could modify them inadvertently, so they are replaced by *metadata* properties that return a string displaying the content of these dictionaries. In addition, *info* properties are kept for inwards/outwards (because required for Exchanger and Data/NullComponent), but they return a deep copy of the dictionaries to avoid accidentally modifying them internally.
Rename framework to unifhy
for the inwards/outwards, the "ideal" transfers rather than the "actual" transfers were used
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Functional changes
(#67)
(#69)
(#76)
API changes
(#21)
Component
and its subclasses from subpackagecomponents
to package root(#46)
_flow_direction
and_land_sea_mask
in component definition to_requires_flow_direction
and_requires_land_sea_mask
, respectively(#46)
(#45)
LatLonGrid
,RotatedLatLonGrid
, andBritishNationalGrid
(#69)
State
dunder methods__getitem__
and__setitem__
withget_timestep
andset_timestep
methods(#71)
initialise
method(#75)
(#76)
Bug fixes
(#32)
(#48)
Model
using aComponent
on theBritishNationalGrid
(#51)
DataSet
(#52)
land_sea_mask
to underlying field ofGrid
to be used in remapping(#59)
Enhancements
(#21)
(#39)
(#31)
(#42)
(#44)
cell_area
property toSpaceDomain
that can be provided by the user or else automatically computed forGrid
(#61)
initialised_states
property toComponent
to allow component contributors not to overwrite user-defined initial conditions(#75)
shelf
attribute toComponent
to allow the communication of data between component methods(#75)
_inwards
and_outwards
component class attributes to allow contributors to declare what interface transfers their component use and produce, respectively(#76)
Dependencies
cf-python>=3.11.0
Documentation
(#35)