Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N nes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Earth SciencesEarth Sciences
  • nes
  • Wiki
  • Development

Development · Changes

Page history
Update Development authored Oct 10, 2023 by Carles Tena's avatar Carles Tena
Hide whitespace changes
Inline Side-by-side
Development.md
View page @ ceadc080
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
## How to contribute to NES ## How to contribute to NES
1. Create an issue and complete the description 1. Create an issue and complete the description
- Complete the description of the issue as much as you can with (estimation time, milestone, assigned one, ...) - Complete the issue description as much as possible with (estimation time, milestone, assigned one, etc.)
2. Create a branch (from master) directly in the issue (name should start with `develop-` following the number and title of the issue) 2. Create a branch (from master) directly in the issue (name should start with `develop-` following the number and title of the issue)
3. Clone and checkout to the new branch without modifications in Nord3v2. 3. Clone and checkout to the new branch without modifications in Nord3v2.
- It is recommended to run some tests to ensure the current behaviour. - It is recommended to run some tests to ensure the current behavior.
4. Modify the code. 4. Modify the code.
5. Run the simulation with the new branch: 5. Run the simulation with the new branch:
- To achieve it is important to prepend the cloned path in the `PYTHONPATH` - To achieve it is important to prepend the cloned path in the `PYTHONPATH`
...@@ -19,19 +19,19 @@ ...@@ -19,19 +19,19 @@
7. Update the `CHANGELOG.md` with the new option- 7. Update the `CHANGELOG.md` with the new option-
8. Update the wiki with the new specifications. 8. Update the wiki with the new specifications.
9. Merge `master` into your development branch. 9. Merge `master` into your development branch.
- To ensure that if there have been news on the master they are included. - To ensure that if there has been news on the master, they are included.
10. Run all tests. 10. Run all tests.
11. Create a merge request assigning it to Alba or Carles 11. Create a merge request assigning it to Alba or Carles
## Vertical interpolation ## Vertical interpolation
- [Numpy linear interpolation](https://numpy.org/doc/stable/reference/generated/numpy.interp.html) is faster than [scipy.interpolate.interp1d](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html) - [Numpy linear interpolation](https://numpy.org/doc/stable/reference/generated/numpy.interp.html) is faster than [scipy.interpolate.interp1d](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html)
- Do the operation using float32 sometimes produces negatives values on very small results - Do the operation using float32 sometimes produces negative values on very small results
- Force to float64 fixes the problem - Force to float64 fixes the problem
```python ```python
# We force the interpolation with float64 to avoid negative values # We force the interpolation with float64 to avoid negative values
# We don't know why the negatives appears with float34 # We don't know why the negatives appear with float34
if kind == 'linear': if kind == 'linear':
dst_data[t, :, j, i] = np.array( dst_data[t, :, j, i] = np.array(
np.interp(new_levels, np.interp(new_levels,
......
Clone repository
  • Home
  • Tutorials
  • Trainings
  • Development