Comments (1)
Hi @johnwang0576, not sure how I missed this, but in any case thanks for opening this up!
This is something that I've seen a couple of times, but stems from modifying the example workflow. In particular, sim.env.cleanup_log_files()
deletes the initialized operations and events logging files, and therefore the headers contained inside. I recommend moving this to either the end of your analysis workflow, or removing it altogether if you plan to inspect the files later because sim.run()
is recreating and writing to those files that have just been deleted.
Bellow, is what your example should look like to operate correctly. I'll be sure to update the documentation to be more clear about when users should and shouldn't run sim.env.cleanup_log_files()
.
from time import perf_counter
from wombat import Simulation
from wombat.core.library import load_yaml, DINWOODIE
library_path = DINWOODIE
config = load_yaml(library_path / "project/config", "base.yaml")
sim = Simulation.from_config(config)
start = perf_counter()
sim.run()
end = perf_counter()
timing = end - start
print(f"Run time: {timing / 60:,.2f} minutes")
sim.env.cleanup_log_files() # delete the events and operations CSV files
from wombat.
Related Issues (20)
- Tow-to-Port Costing Improvements
- More sensible repair time starts
- Repairs on failures with 100% operation reduction and no replacement do not return the subsystem to the correct state HOT 3
- Random seed not respected when specified in configuration file that is loaded automatically given a library path and configuration file name HOT 3
- Tow-to-Port Repair Logic
- Create a CLI to run one or multiple simulation cases
- Integrate NREL/turbine-models for easy access to power curves
- Pandas 1.4.1: Error in metrics data time calculation HOT 1
- PySAM 3.0: Incompatible with current functionality
- `Metrics.process_times()` data frame creation warning HOT 1
- Partial Cable Operation Reductions Not Impacting Results
- Strings with a fork don't resolve correctly HOT 6
- Support for weather profiles with many columns HOT 1
- Date-Based Maintenance
- Allow Turbines to Operate During Select Repairs
- Systematically remove `# type: ignore` for updated attrs/mypy compatibility
- Double counting weather delays
- distance_km is NaN for CTVs HOT 1
- Swap Pandas out for Polars for simulation-specific tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wombat.