Skip to content

Commit

Permalink
Release/v0.7.1 (#90)
Browse files Browse the repository at this point in the history
* Bug Fix: Fix Pandas Code Causing Warnings (#69)

* fix groupby warning in energy availability

* fix warnings in group by methods

* fix bug in tow to port logging

* fix warnings and issues with N tows logic

* update docs notebooks

* update changelog

* Bug Fix: Negative Timeout Errors in Weather Delay (#70)

* update pre-commit settings

* fix issue where travel time is longer than weather delay

* update changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* update codecov  version (#74)

* Bug fix: interruption timing (#73)

* fix issue with start undefined when waiting is interrupted

* apply the same fix to cables

* update comment

* make error message more useful

* Bug fix: Update pre commit workflow and versioning (#76)

* first pass of updating pre-commit to use pyproject.toml and ruff

* run new workflow on package

* remove old pylint configs

* add in pydocstyle

* add pyupgrade

* update settings

* update changelog

* update pre-commit and ruff dependency

* fix typing

* Bug fix: Duplicate log args & Improper port vessel management (#77)

* fix bug with duplicate field and negative delay

* properly manager AHV and TOW equipment

* update changelog

* Bug Fix: Only Process Weather Delays Once (#81)

* add missing changelog commentary

* fix doubled weather delay bug

* update changelog

* fix timing issue in test

* Feature: Allow more weather columns (#82)

* check for required columns in data

* resort weather columns to get assumed ordering for desired positions

* sort the columns

* allow for more columns in data collection line

* fix column reference

* update changelog

* Bug fix: Port Stops Processing Tow-To-Port (#83)

* ensure in situ port deployments aren't dispatching TOW-only vessels

* update type checking and move port dispatching outside of servicing equipment:

* better handle tugboat vs port-based vessel distinction and dispatching

* update to port_based

* consolidate in situ repair dispatching to be port vs manager managed

* fix bug in naming convention and improper reference

* update changelog

* apply dispatch logic to downtime based equipment

* Bug Fix: Correct Intra-Site Travel (#84)

* update docstring

* fix logging issues with locations

* remove print statement

* parial fix

* remove location setting from crew transfer altogether

* update changelog

* update timing in the servicing equipment tests

* update gitignore for results files in testing that get saved

* fix typo in folder name

* update pre-commit configuration

* Bug fix/layout impacts (#86)

* fix issue where in situ port repairs don't check for servicing status

* ensure equipment aren't deployed to in-service systems

* remove double check

* update the string traversal logic and switch to events to cable failures are properly completed

* make sure simpy logic is processed correctly

* ensure last turbine in string is addressed

* simplify control flow

* rename severity-based request get and fix bug in improper deployments

* add halt requests method to in situ port-based repairs

* shift servicing.succeed() to solely be managed by the manager

* ensure event is created before interruption for time stopping

* remove outdated try/except for process that should always work

* restore try/except for cables

* convert triggered to processed

* convert triggered to processed and add error message for when System is improperly accessed

* triggered -> processed and ensure that dispatched is used consistently

* check for vessels being dispatched and yield all 3 checks simultaneously or don't start processes

* remove old method and have halt_requests method called earlier in the repair process to ensure no entanglements

* add another informative RuntimeError and remove old run_unscheduled method

* add origin parameter to use custom try/except for interruptions

* update changelog

* add convenience functionality to StrategyMap

* use new strategy methods and double check for requests that more dispatching isn't needed

* make sure end node is always considered upstream and fix typo

* ensure end nodes are properly handled during string re-powering

* convert processed back to triggered

* ensure processes are processed

* ensure processes are processed and repair registration

* remove prints and ensure cable failure repairs turn cables back on

* use interruption api consistently

* add better timining and logistics handling for multiple simultaneous requests

* fix repair logic for proper timing

* update for change in where failure occurs

* update test for underlying API changes and compatibility

* cleanup onsite vs at_site logic confusion

* update test to reflect changes

* add additional test case layout in place in-test creation

* update changelog

* add extra manager.get() to ensure request is gone from queue at end of repair

* add 1 second waiting period after initializing request

* add updated timing for new simulation mechanisms

* expand on comment'

* change dispatch-triggering request removal process

* add warnings filter for odd pandas behavior

* add better datetime handling for events and operations loading

* update the deprecation warning for v0.8

* add deprecation note to example

* add note in changes about availability impacts

* udpate examples

* update turbine operation reduction to all 0s

* remove erroneously committed files

* remove erroneously committed data

* fix bug in equipment-labor cost breakdown

* remove abstract and fix typo

* update validations

* fix bug in labor costs groupby

* update sphinx-book-theme for weird error resolution

* udpate sphinx mapping

* update metrics demonstration for real run time

* update docstring formatting

* add reference page explaining examples on GH

* update examples from latest docs build

* unset notebooks to run

* update wording in high-level description

* fix missing release in changelog

* Patch: Process Times (#89)

* add time to start of repair

* udpate changelog

* update back to auto

* udpate the examples post docs building

* update changelog and bump version

* add more date formats for weather

* update the examples

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
RHammond2 and pre-commit-ci[bot] authored May 4, 2023
1 parent 3c84a01 commit 64ea430
Show file tree
Hide file tree
Showing 10 changed files with 2,085 additions and 2,030 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
## Unreleased (TBD)
## v0.7.1 (4 May 2023)

- Features
- `Metrics.process_times()` now includes the time_to_start, representing the time between when a request is submitted, and when the repairs officially start.
- Expand the acceptable date formats for the weather profiles to allow for year-first.

## v0.7.0 (3 May 2023)

- Replace Flake8 and Pylint in the pre-commit workflow with ruff, and fix/ignore the resulting errors as appropriate
- Features:
- Weather data now has the ability to contain more than just the required "windspeed" and "waveheight" columns. This will allow for easier expansion of the weather model in the future, and increase compatibility with other NREL techno economic modeling frameworks.
Expand Down
36 changes: 18 additions & 18 deletions docs/jupyter_execute/examples/how_to.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "6419de46",
"id": "8e5a10ac",
"metadata": {},
"source": [
"# How To Use WOMBAT\n",
Expand All @@ -19,7 +19,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "4603906f",
"id": "eb23074d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -42,7 +42,7 @@
},
{
"cell_type": "markdown",
"id": "e11f130d",
"id": "6fd19fc7",
"metadata": {},
"source": [
"## Defining the Simulation\n",
Expand Down Expand Up @@ -522,7 +522,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "c5cf8413",
"id": "5ff13dd4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -531,7 +531,7 @@
},
{
"cell_type": "markdown",
"id": "2e6c3f72",
"id": "c4869a25",
"metadata": {},
"source": [
"### The configuration file\n",
Expand All @@ -552,7 +552,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "9175d40c",
"id": "5ab7ebed",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -561,7 +561,7 @@
},
{
"cell_type": "markdown",
"id": "f8aff3c5",
"id": "976d588b",
"metadata": {},
"source": [
"```{code-block} yaml\n",
Expand Down Expand Up @@ -605,7 +605,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "0d8f6170",
"id": "635d8f82",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -617,7 +617,7 @@
},
{
"cell_type": "markdown",
"id": "5282e11d",
"id": "c086a01e",
"metadata": {},
"source": [
"### Option 2: `Simulation()`\n",
Expand All @@ -639,7 +639,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "387ffd28",
"id": "2934d795",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -651,7 +651,7 @@
},
{
"cell_type": "markdown",
"id": "a996f429",
"id": "90fe0fb4",
"metadata": {},
"source": [
"## Run the analysis\n",
Expand All @@ -678,14 +678,14 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "99697b5b",
"id": "dbf71a70",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Run time: 0.78 minutes\n"
"Run time: 0.81 minutes\n"
]
}
],
Expand All @@ -703,7 +703,7 @@
},
{
"cell_type": "markdown",
"id": "3253f074",
"id": "1786a185",
"metadata": {},
"source": [
"## Metric computation\n",
Expand All @@ -715,7 +715,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "0cbb8493",
"id": "623c0b62",
"metadata": {},
"outputs": [
{
Expand All @@ -737,7 +737,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "6af5457b",
"id": "f8652c4e",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -770,7 +770,7 @@
},
{
"cell_type": "markdown",
"id": "ab784af6",
"id": "8440317a",
"metadata": {},
"source": [
"## Optional: Delete the logging files\n",
Expand All @@ -781,7 +781,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "831c6a40",
"id": "8ee02167",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit 64ea430

Please sign in to comment.