Skip to content

alanmacdonald1/fyne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*As part of the Diverseafood project *

FYNE (Model of salmon waste and fatty acids in loch fyne IMTA farm)

Project version Docker version Docker Compose version

What is it?

A UI that simulates carbon and nitrogen flows in salmon farm given different inputs e.g. salmon diet composition, salmon number etc.

How does it work?

R shiny app run in docker that connects to mathematical model in C.

  1. Main model in C called by R
  2. R shiny spits out run parameters into C
  3. C spits out model output
  4. R shiny displays real time (well, its not instant) model results

image image image

HOW TO RUN

Installing Docker and Docker Compose

This guide will walk you through the steps to install Docker and Docker Compose on macOS and various Linux distributions.

For macOS Users:

Install Docker

  1. Follow the official Docker installation guide for macOS: Install Docker on macOS
  2. After installation, verify the Docker installation and check the Docker version by opening a terminal and running:
    docker --version
    
    
    

This guide will walk you through the steps to install Docker and Docker Compose on various Linux distributions.

For Linux Users:

Install Docker

  1. Follow the official Docker installation guide for your specific Linux distribution:
  2. After installation, verify the Docker installation and check the Docker version by opening a terminal and running:
    docker --version
    
    

Install Docker Compose

  1. Run this command to download the current stable release of Docker Compose:
    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    
    
  2. Apply executable permissions to the binary:
    sudo chmod +x /usr/local/bin/docker-compose
    
    
    

Run FYNE GUI

Once docker and docker-compose are installed, simply bring up the container to run

docker-compose up

Making changes

If changes are required, cd into the container

docker exec -it <CONTAINER_ID> /bin/bash

After making changes, exit

exit

Restart the container

docker-compose restart <CONTAINER_ID>

Further reading

See MacDonald, A., Serpetti, N. and Franco, S.C., 2024. Optimising seafood nutritional value and environmental sustainability in aquaculture through a novel integrated modelling tool applicable to IMTA and monoculture.

(back to top)

Custom License for FYNE

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

Requirements

Commercial Use

If you wish to use this software for commercial or profit-generating activities, you must first consult with the author(s) of the software to negotiate terms.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Model code and GUI for simulating salmon growth, fatty acid changes in a farm setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors