Comments (7)
def wanna support comments in the control file! Are your comments entire lines mixed in the DataFramed
'd sections or extra things at the end of the lines? Can you upload you control file so I can add it to the tests?
from pyemu.
Awesome, thanks a lot. Comments are all end of line in my case, within the parameter and/or obs sections - I tested adding comment='#' to pd.read_csv() in _read_df() and it works fine with my file:
dualss_csgtrans_regwtsadj_v8_hp_dataworth_noregV3_base.zip
I guess it might be safest to add a parameter for users' comment character in calls to Pst()?
from pyemu.
Thanks for the file. I'll work on this - I was thinking it would be good to carry the comments through so that when you write a new control file it keeps them. This will take some more work but I think its important: I'm planning to start using the comments at the end of the lines to store metadata like spatial and temporal things...
from pyemu.
Ah good point, hadn't thought about re-writes, but yeah esp for monster files like this it is a nice touch.
from pyemu.
Ok, I think I got this going on the develop branch. By default, if comments are found during read, then they are repeated in a write. Let me know what you think.
from pyemu.
That works great - thanks a lot for implementing so quickly.
As an aside, I have noticed a couple of other issues with re-writes, probably quite specific to my setup. I'll have a stab at sorting them out in the next day or so and send you my suggested changes for consideration (let me know if that's not the easiest way to get these to you - I'm new to github).
Cheers,
Chris.
from pyemu.
I'm keen to hear any issues you have. Any contributions are welcome - pull request would be best.
from pyemu.
Related Issues (20)
- Parameter and Observation ordering HOT 5
- issue with zero_order_tikhonov HOT 6
- Optional sections
- RuntimeError when adjusting weights with some groups zero-weighted
- Inequality constraints for parameters HOT 6
- error from pyemu.en.ParameterEnsemble.from_mixed_draws HOT 3
- Issues in parameterizing a MODFLOW6 timeseries file HOT 4
- Using DataFrame to specify pp_space would not generate 'dat' and 'mlt' files HOT 21
- encountered an error with pestpp HOT 8
- Standard SVD fail due to memory allocation issue HOT 5
- deactivate
- JCO2JCO functionality in pyemu HOT 3
- Restarting pestpp-glm from pyemu HOT 4
- File distribution functionality in pestpp-glm HOT 2
- read_pestpp_runstorage HOT 5
- SVD-assist if model runs fail during Jacobian calculation HOT 2
- Debugging model infeasibilty after running PESTPP-OPT HOT 2
- pyemu.Pst.from_io_files changed some observation values HOT 2
- ParameterEnsemble from_mixed_draws throws error when there are fixed params and fill=True HOT 3
- Attribute error in apply_genericlist_pars HOT 2
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 pyemu.