Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
f1917c55
Verified
Commit
f1917c55
authored
9 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Import __future__ for older Python versions.
parent
674763b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!171
sav/spss converter
Pipeline
#52179
passed
9 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/caoscrawler/conv_impl/spss.py
+4
-2
4 additions, 2 deletions
src/caoscrawler/conv_impl/spss.py
src/caoscrawler/converters.py
+1
-1
1 addition, 1 deletion
src/caoscrawler/converters.py
with
5 additions
and
3 deletions
src/caoscrawler/conv_impl/spss.py
+
4
−
2
View file @
f1917c55
...
...
@@ -18,6 +18,8 @@
"""
Converter for SAV files (stored by SPSS).
"""
from
__future__
import
annotations
# Can be removed with 3.10.
import
argparse
from
collections
import
OrderedDict
...
...
@@ -29,7 +31,7 @@ import yaml
from
..
import
converters
from
..stores
import
GeneralStore
from
..structure_elements
import
(
File
,
StructureElement
)
from
typing
import
Optional
from
typing
import
Optional
,
Any
READSTAT_TYPES
=
{
...
...
@@ -62,7 +64,7 @@ class SPSSConverter(converters.TableConverter):
return
self
.
_children_from_dataframe
(
df
)
def
read_column_types
(
savfile
:
Optional
[
str
]
=
None
,
meta
:
Optional
=
None
)
->
dict
[
str
,
str
]:
def
read_column_types
(
savfile
:
Optional
[
str
]
=
None
,
meta
:
Optional
[
Any
]
=
None
)
->
dict
[
str
,
str
]:
"""
Read SAV file and return the column types.
Optionally, take data from a previours reading.
...
...
This diff is collapsed.
Click to expand it.
src/caoscrawler/converters.py
+
1
−
1
View file @
f1917c55
...
...
@@ -820,7 +820,7 @@ class DictElementConverter(Converter):
class
DictConverter
(
DictElementConverter
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
warnings
.
warn
(
DeprecationWarning
(
"
This class is deprecated. Please use DictElem
n
entConverter.
"
))
"
This class is deprecated. Please use DictElementConverter.
"
))
super
().
__init__
(
*
args
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment