Comments (2)
@wkitlasten this seems like something that should be supported. I would vote for using index_col=None but specifying use_col=0 for the headerless single column list file type.
The main thing to look out for is that (I think) the presence of a non None index_col is what triggers a lot of assumptions about the input file structure (ie list rather than array style). This could be switched over to use_cols being the trigger and the index that is required for the parameter name being derived from the dataframe index.
There maybe a bit of chasing it through required. Give a shout if you get stuck.
from pyemu.
The option here is to support single col inputs as either list-like or array-like.
For list-like, we would need to support passing to add_parameters()
without index_cols
argument and move the list-like setup trigger to use_cols
. May just need chasing through methods a bit.
For array-like, we would need to circumvent the automatic get_xy
trigger.
The array option might actually be easier to implement but for me it feels better to set these up list-like. Obviously supporting spatial definition for inputs like this is tricky and we might need to look at allowing more granular specification of arguments at add_pars
time to support mixed model input format types (i.e. specification of input specific get_xy
function/spatial mapping rather than relying on what is on the parent object).
from pyemu.
Related Issues (20)
- Pandas pinned to < 2.1.0 HOT 3
- Out of memory error using Matrix.get with many observations HOT 3
- modelgrid object will not work in place of spatial_reference object in calc_factors_grid HOT 3
- add_parameters KeyError when 'filename' includes path HOT 2
- Justification for setting par_names to all lowercase in parse_tpl_file HOT 2
- use robocopy mirror instead of shutil.copytree in start_workers() HOT 1
- pstfrom_mf6.ipynb doesn't run to completion and returns an error HOT 2
- Panther progress not showing at fourth iteration HOT 1
- AttributeError: 'Pandas' object has no attribute 'chkpar' HOT 33
- testing issue HOT 2
- shortnames may still violate template file line length constraints in pest_hp HOT 2
- parrep bug? HOT 1
- Miss-alignment in tpl indices and original file HOT 5
- pe.enforce() does not always update df HOT 1
- Matrix object has no attribute 'names' HOT 1
- I/O operation on closed file HOT 2
- Documentation not working HOT 2
- numpy 2.0 incompatibility HOT 1
- Error "ValueError: columns cannot be a set" from pyemu.ParameterEnsemble.from_parfiles()
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.