Comments (5)
@emilyarobles I am using < 100
See https://github.com/NGEET/ngt-archive/blob/main/archive_api/serializers.py#L149-L151
# Make sure description has at least 100 words
if 'description' in data.keys() and data['description'] and len(data['description'].split()) < 100:
errors["description"] = "Description must be at least 100 words."
from ngt-archive.
@emilyarobles can you give me some text that your entered which I can used to reproduce the issue you are seeing?
from ngt-archive.
@vchendrix This description is 100 words but the error is appearing:
Revising to add text and meet 100 word limit, error message appeared as expected: This dataset contains raw output from the data logger connected to 9 sapflow and 5 soil moisture sensors are provided in the file xxx.dat. The metadata file (BR-Ma2 E-field log_20160501.xls) has additional information on locations where the sensors were installed, as well as other installation/maintenance details. No data processing or QA/QC was done on the raw datasets. Additional processed datasets will be uploaded separately and added to the Dataset References section. Please contact [email protected] if you need to use this dataset for additional information.
from ngt-archive.
@emilyarobles I using a very simple way to count words with split(). Here is how that text appears
>>> text = """Revising to add text and meet 100 word limit, error message appeared as expected: This dataset contains raw output from the data logger connected to 9 sapflow and 5 soil moisture sensors are provided in the file xxx.dat. The metadata file (BR-Ma2 E-field log_20160501.xls) has additional information on locations where the sensors were installed, as well as other installation/maintenance details. No data processing or QA/QC was done on the raw datasets. Additional processed datasets will be uploaded separately and added to the Dataset References section. Please contact [email protected] if you need to use this dataset for additional information."""
>>> len(text.split())
98
>>> text.split()
['Revising', 'to', 'add', 'text', 'and', 'meet', '100', 'word', 'limit,', 'error', 'message', 'appeared', 'as', 'expected:', 'This', 'dataset', 'contains', 'raw', 'output', 'from', 'the', 'data', 'logger', 'connected', 'to', '9', 'sapflow', 'and', '5', 'soil', 'moisture', 'sensors', 'are', 'provided', 'in', 'the', 'file', 'xxx.dat.', 'The', 'metadata', 'file', '(BR-Ma2', 'E-field', 'log_20160501.xls)', 'has', 'additional', 'information', 'on', 'locations', 'where', 'the', 'sensors', 'were', 'installed,', 'as', 'well', 'as', 'other', 'installation/maintenance', 'details.', 'No', 'data', 'processing', 'or', 'QA/QC', 'was', 'done', 'on', 'the', 'raw', 'datasets.', 'Additional', 'processed', 'datasets', 'will', 'be', 'uploaded', 'separately', 'and', 'added', 'to', 'the', 'Dataset', 'References', 'section.', 'Please', 'contact', '[email protected]', 'if', 'you', 'need', 'to', 'use', 'this', 'dataset', 'for', 'additional', 'information.']
>>>
from ngt-archive.
Closing.
from ngt-archive.
Related Issues (20)
- Consider making Method Description a required field HOT 8
- Error transferring dataset to ESS-DIVE at (or within) the limit of characters for at least three fields HOT 2
- Character limit instructions missing on tooltip for "Additional Information about Dataset Reference(s)"
- Error accessing dataset download log HOT 1
- SSL error for openssl 3 HOT 1
- Additional checks for OSTI service
- Consider adding expiration/TTL to maintenance page to help avoid caching maintenance page for too long
- ESS-DIVE Transfer Error - Identifier Not Matching HOT 1
- Issue error message in admin UI when trying to sync datasets in non-approved state HOT 1
- Add miminum word count message to tooltip on "Dataset Description"
- Consider methods for synchronization of funding organizations and contract numbers into ESS-DIVE HOT 2
- Consider adding export of JSON of all metadata from NGEE-Tropics Archive when synchronizing to ESS-DIVE
- Modify warning produced by Dataset Description limit to include word count
- Add 1024 char limit to Dataset Funding Organization(s) field
- Default DOE Contract Number Transfer
- Change version on app.js to prevent caching of previous version
- Export feature for admin ESS-DIVE transfers page
- Cannot submit dataset with empty "funding organization"
- Cannot transfer to ESS-DIVE with funding organization text broken down with comma or new line characters
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 ngt-archive.