Update Guide
This guide is designed to help you easily update CoastSeg, whether you're updating to a specific version, the latest version, applying a patch, or updating code and notebooks from GitHub.
Step 1: Activate the Environment¶
- Open your terminal or Anaconda Prompt.
1
conda activate coastseg
Step 2: Update the CoastSeg Version Installed¶
Option 1: Update via Conda¶
Use the following command to update CoastSeg. This command will fetch the latest version of CoastSeg available in the Conda channels that you have access to.
1 |
|
- If you're looking for a specific version of CoastSeg, you can specify it directly by using
1 |
|
- Replace
with the desired version number, such as 1.2.3
Option 2: Update via Pip¶
Update to the Latest Version
1.Install the latest version of CoastSeg from PyPi:
- Use the command below to upgrade to the latest version, which includes all recent features and fixes:
1 |
|
- Don't worry if you see the warning message below. This is normal
1 |
|
2.Install jsonschema
- To ensure functionality in Jupyter notebooks, install the required jsonschema version:
1 |
|
Update to a Specific Version
1.Install a Specific Version of CoastSeg from PyPi:
- If you need to install a particular version, use the command below and replace
with the desired version number (e.g., 1.1.26).
1 |
|
- Don't worry if you see the warning message below. This is normal
1 |
|
- Install jsonschema
-This is necessary to run coastseg in a jupyter notebook.
1 |
|
Step 3: Update Code and Notebooks from GitHub
¶(Optional) Follow these steps if you want the latest notebooks or code updates from the CoastSeg GitHub repository.
Step 1: Open CoastSeg in Anaconda¶
1.Open Anaconda Prompt
2.Activate the coastseg environment
1 |
|
3.Go to your coastseg location
1 |
|
Step 2: Check for a Remote Connection to CoastSeg Repository¶
-Run the command below. In the output of this command you should see origin https://github.com/Doodleverse/CoastSeg.git (fetch)
1 |
|
- If you don't see this output, then run the following command
1 2
git remote add origin https://github.com/Doodleverse/CoastSeg.git git pull origin main
Step 3: Pull the Latest Changes¶
- Run the command below
1
git pull origin main
-
If you recieve an error message like the one shown below then proceed to 3, otherwise go to Go to Step 4: Verify Update Success
1 2
Please commit your changes or stash them before you merge Aborting
-
Run the command below:
-WARNING This will clear out anything you have written to the certifications.json
make sure to save that file to a new location then move it back when you're done upgrading
1 2 3 |
|
Step 4: Verify Update Success¶
1 |
|
- This command should return the following message
On branch main Your branch is up to date with 'origin/main'.